You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by gb...@apache.org on 2020/09/10 14:30:08 UTC

svn commit: r1881624 - /httpd/httpd/trunk/modules/http/http_filters.c

Author: gbechis
Date: Thu Sep 10 14:30:08 2020
New Revision: 1881624

URL: http://svn.apache.org/viewvc?rev=1881624&view=rev
Log:
fix headers name, spotted by Ivan Zhakov

Modified:
    httpd/httpd/trunk/modules/http/http_filters.c

Modified: httpd/httpd/trunk/modules/http/http_filters.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_filters.c?rev=1881624&r1=1881623&r2=1881624&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_filters.c (original)
+++ httpd/httpd/trunk/modules/http/http_filters.c Thu Sep 10 14:30:08 2020
@@ -1431,14 +1431,14 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_
        * List of headers that must not be updated on a 304 (or 206 partial content)
        * https://tools.ietf.org/id/draft-ietf-httpbis-cache-08.txt
        */
-      apr_table_unset(r->headers_out, "Content_Encoding");
-      apr_table_unset(r->headers_out, "Content_Length");
-      apr_table_unset(r->headers_out, "Content_MD5");
-      apr_table_unset(r->headers_out, "Content_Range");
+      apr_table_unset(r->headers_out, "Content-Encoding");
+      apr_table_unset(r->headers_out, "Content-Length");
+      apr_table_unset(r->headers_out, "Content-MD5");
+      apr_table_unset(r->headers_out, "Content-Range");
       apr_table_unset(r->headers_out, "ETag");
       apr_table_unset(r->headers_out, "TE");
       apr_table_unset(r->headers_out, "Trailer");
-      apr_table_unset(r->headers_out, "Transfer_Encoding");
+      apr_table_unset(r->headers_out, "Transfer-Encoding");
       apr_table_unset(r->headers_out, "Upgrade");
     }
     send_all_header_fields(&h, r);