]> granicus.if.org Git - apache/commitdiff
* Only send 100-continue if the status code so far indicates success.
authorRuediger Pluem <rpluem@apache.org>
Mon, 19 May 2008 19:30:15 +0000 (19:30 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 19 May 2008 19:30:15 +0000 (19:30 +0000)
PR: 43711

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@657933 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/http/http_filters.c

diff --git a/CHANGES b/CHANGES
index be3b6027da8b82f98105b911a048c947bef1fc73..e2021099efc68258d5b69ca2bff0bc9a373671d6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,7 +2,10 @@
 Changes with Apache 2.3.0
 [ When backported to 2.2.x, remove entry from this file ]
 
-  *) ab: Make ab.c compile on VC6. PR 45024  [Ruediger Pluem]
+  *) http_filters: Don't return 100-continue on redirects. PR 43711
+     [Ruediger Pluem]
+
+  *) ab: Make ab.c compile on VC6. PR 45024 [Ruediger Pluem]
 
   *) configure: Don't reject libtool 2.x
      PR 44817 [Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA gmail.com>]
index 7f8b9224e1afbe09a78693b6a9c65f059768a37f..d48ba7e3f66196124cb765330e1dde90b6a89734 100644 (file)
@@ -323,7 +323,7 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b,
             (ctx->state == BODY_LENGTH && ctx->remaining > 0)) &&
             f->r->expecting_100 && f->r->proto_num >= HTTP_VERSION(1,1) &&
             !(f->r->eos_sent || f->r->bytes_sent)) {
-            if (ap_is_HTTP_CLIENT_ERROR(f->r->status)) {
+            if (!ap_is_HTTP_SUCCESS(f->r->status)) {
                 ctx->state = BODY_NONE;
                 ctx->eos_sent = 1;
             } else {