]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backport fix r230718; a soon-to-be impossible edge case; we are always
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 8 Aug 2005 00:59:40 +0000 (00:59 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 8 Aug 2005 00:59:40 +0000 (00:59 +0000)
  sending a body (even an 'empty' body) using stream_chunked, so we must
  always send the trailing "0" end of body marker.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/proxy-reqbody-2.0.x@230719 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_http.c

index 780606d1ee77d52b495f45c668bb2fc66aed6fc7..6c2a91f62915fd7f35b27eb91589852bd5eb418d 100644 (file)
@@ -544,13 +544,14 @@ static apr_status_t stream_reqbody_chunked(apr_pool_t *p,
             AP_DEBUG_ASSERT(APR_BUCKET_IS_EOS(e));
             apr_bucket_delete(e);
         }
-        e = apr_bucket_immortal_create(ASCII_ZERO ASCII_CRLF
-                                       /* <trailers> */
-                                       ASCII_CRLF,
-                                       5, bucket_alloc);
-        APR_BRIGADE_INSERT_TAIL(input_brigade, e);
-        b = input_brigade;
     }
+
+    e = apr_bucket_immortal_create(ASCII_ZERO ASCII_CRLF
+                                   /* <trailers> */
+                                   ASCII_CRLF,
+                                   5, bucket_alloc);
+    APR_BRIGADE_INSERT_TAIL(input_brigade, e);
+    b = input_brigade;
     
     status = pass_brigade(bucket_alloc, r, p_conn, origin, b, 1);
     return status;