]> granicus.if.org Git - apache/commitdiff
clone_headers_no_body: remove all entity headers in addition to the
authorGreg Ames <gregames@apache.org>
Tue, 29 Mar 2005 18:24:46 +0000 (18:24 +0000)
committerGreg Ames <gregames@apache.org>
Tue, 29 Mar 2005 18:24:46 +0000 (18:24 +0000)
Transfer-Encoding header when creating a GET subrequest

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

server/protocol.c

index 4d7d54ace9a74cf1a9de327f3a7dd642edf4a231..546df2f7f267e42b3b35e90ba67f90317b19bad0 100644 (file)
@@ -996,10 +996,16 @@ static void clone_headers_no_body(request_rec *rnew,
                                   const request_rec *r)
 {
     rnew->headers_in = apr_table_copy(rnew->pool, r->headers_in);
+    apr_table_unset(rnew->headers_in, "Content-Encoding");
+    apr_table_unset(rnew->headers_in, "Content-Language");
     apr_table_unset(rnew->headers_in, "Content-Length");
-    apr_table_unset(rnew->headers_in, "Transfer-Encoding");
+    apr_table_unset(rnew->headers_in, "Content-Location");
+    apr_table_unset(rnew->headers_in, "Content-MD5");
+    apr_table_unset(rnew->headers_in, "Content-Range");
     apr_table_unset(rnew->headers_in, "Content-Type");
-    apr_table_unset(rnew->headers_in, "Content-Encoding");
+    apr_table_unset(rnew->headers_in, "Expires");
+    apr_table_unset(rnew->headers_in, "Last-Modified");
+    apr_table_unset(rnew->headers_in, "Transfer-Encoding");
 }        
 
 /*