* Do not strip any headers from 304 responses.
PR: 61820
Reviewed by: rpluem, covener, ylavic
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1889764 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.4.47
+ *) core: Fix a regression that stripped the ETag header from 304 responses.
+ PR 61820 [Ruediger Pluem, Roy T. Fielding]
+
*) mod_dav_fs: Improve logging output when failing to open files for
writing. PR 64413. [Bingyu Shen <ahshenbingyu gmail.com>]
2.4.x patch: svn merge -c 1888266 ^/httpd/httpd/trunk .
+1: ylavic, icing, rpluem
- *) core: Fix a regression that stripped the ETag header from 304 responses.
- PR 61820
- Trunk version of patch:
- https://svn.apache.org/r1889341
- Backport version for 2.4.x of patch:
- Trunk version of patch works
- svn merge -c 1889341 ^/httpd/httpd/trunk .
- +1: rpluem, covener, ylavic
-
*) core/mod_ssl/mod_md:
- adding new ap_ssl_*() functions for a backward
compatible replacement of the major optional mod_ssl functions. This
h.pool = r->pool;
h.bb = b2;
- if (r->status == HTTP_NOT_MODIFIED) {
- /*
- * 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, "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, "Upgrade");
- }
send_all_header_fields(&h, r);
terminate_header(b2);