]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r657933 from trunk:
authorRuediger Pluem <rpluem@apache.org>
Tue, 27 May 2008 15:54:31 +0000 (15:54 +0000)
committerRuediger Pluem <rpluem@apache.org>
Tue, 27 May 2008 15:54:31 +0000 (15:54 +0000)
* Only send 100-continue if the status code so far indicates success.

PR: 43711

Submitted by: rpluem
Reviewed by: rpluem, niq, trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@660569 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/http/http_filters.c

diff --git a/CHANGES b/CHANGES
index 139cb002e47b183e0775060652df7b82f670d4c3..05245a0c0a5c940a3e7026845e9d0fd0b43f7ede 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.2.9
 
+  *) http_filters: Don't return 100-continue on redirects. PR 43711
+     [Ruediger Pluem]
+
   *) mod_ssl: Fix a memory leak with connections that have zlib compression
      turned on. PR 44975 [Joe Orton, Amund Elstad <Amund.Elstad ist.com>,
      Dr Stephen Henson <steve openssl.org>]
diff --git a/STATUS b/STATUS
index aad090962c3c9c3b6ed607bdc3e1433b68246ddf..fdc7fb9f819caa1d716de0ed187af6146f0a40ad 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -134,13 +134,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
        http://people.apache.org/~fielding/p/ab-sync.txt
   +1: fielding, jim, wrowe
 
- * http_filters: Don't return 100-continue on redirects. PR 43711
-   Trunk version of patch:
-         http://svn.apache.org/viewvc?rev=657933&view=rev
-   Backport version for 2.2.x of patch:
-         Trunk version of patch works
-   +1: rpluem, niq, trawick
-
  * mod_dav: Return "method not allowed" if the destination URI of a WebDAV
    copy / move operation is no DAV resource. PR 44734 
    Trunk version of patch:
index 2a8761c776436352866b735ebbb99f6bc2bb765a..09fa220bf3535a46ba11a57c6f6c105ce190a697 100644 (file)
@@ -324,7 +324,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 {