Submitted by: Andr��Malo <nd@perlig.de>
Reviewed by: Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97473
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.44
Changes with Apache 2.0.44
+ *) Always emit Vary header if mod_deflate is involved in the
+ request. [AndréMalo <nd@perlig.de>]
+
*) mod_isapi: Stop unsetting the 'empty' query string result with
a NULL argument in ecb->lpszQueryString, eliminating segfaults
for some ISAPI modules. PR 14399
*) mod_isapi: Stop unsetting the 'empty' query string result with
a NULL argument in ecb->lpszQueryString, eliminating segfaults
for some ISAPI modules. PR 14399
+ /* Even if we don't accept this request based on it not having
+ * the Accept-Encoding, we need to note that we were looking
+ * for this header and downstream proxies should be aware of that.
+ */
+ apr_table_setn(r->headers_out, "Vary", "Accept-Encoding");
+
/* if they don't have the line, then they can't play */
accepts = apr_table_get(r->headers_in, "Accept-Encoding");
if (accepts == NULL) {
/* if they don't have the line, then they can't play */
accepts = apr_table_get(r->headers_in, "Accept-Encoding");
if (accepts == NULL) {
else {
apr_table_mergen(r->headers_out, "Content-Encoding", "gzip");
}
else {
apr_table_mergen(r->headers_out, "Content-Encoding", "gzip");
}
- apr_table_setn(r->headers_out, "Vary", "Accept-Encoding");
apr_table_unset(r->headers_out, "Content-Length");
/* initialize deflate output buffer */
apr_table_unset(r->headers_out, "Content-Length");
/* initialize deflate output buffer */