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);