]> granicus.if.org Git - apache/commitdiff
use a more general but slightly slower test for a body.
authorGreg Ames <gregames@apache.org>
Fri, 8 Apr 2005 18:07:33 +0000 (18:07 +0000)
committerGreg Ames <gregames@apache.org>
Fri, 8 Apr 2005 18:07:33 +0000 (18:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@160573 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 546df2f7f267e42b3b35e90ba67f90317b19bad0..2ef8438003653d6a5e8399aa5c27d2b8904ee8b8 100644 (file)
@@ -1032,7 +1032,8 @@ AP_DECLARE(void) ap_set_sub_req_protocol(request_rec *rnew,
     /* did the original request have a body?  (e.g. POST w/SSI tags)
      * if so, make sure the subrequest doesn't inherit body headers
      */
-    if (r->read_length) {
+    if (apr_table_get(r->headers_in, "Content-Length")
+        || apr_table_get(r->headers_in, "Transfer-Encoding")) {
         clone_headers_no_body(rnew, r);
     } else {
         /* no body (common case).  clone headers the cheap way */