*) mod_cache: Correctly save Content-Encoding of cachable entity. PR 46401
[Dan Poirier <poirier pobox.com>]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@727767
13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.2.12
+ *) mod_cache: Correctly save Content-Encoding of cachable entity. PR 46401
+ [Dan Poirier <poirier pobox.com>]
+
*) Output -M and -S dumps (modules and vhosts) to stdout instead of stderr.
PR 42571 and PR 44266 (dup). [Dan Poirier <poirier pobox.com>]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_cache: Correctly save Content-Encoding of cachable entity. PR 46401
- [Dan Poirier <poirier pobox.com>]
- Trunk version of patch (committed by rpluem):
- http://svn.apache.org/viewvc?view=rev&revision=726796
- Backport version of patch:
- http://people.apache.org/~rederpj/backport_PR46401_cache_Content-Encoding.diff
- +1: rederpj, rpluem, covener
-
* mod_ldap: Avoid a segfault when result->rc is checked in uldap_connection_init
when result is NULL. This could happen if LDAP initialization failed.
PR 45994. [Dan Poirier <poirier pobox.com>]
ap_make_content_type(r, r->content_type));
}
+ if (!apr_table_get(headers_out, "Content-Encoding")
+ && r->content_encoding) {
+ apr_table_setn(headers_out, "Content-Encoding",
+ r->content_encoding);
+ }
+
headers_out = apr_table_overlay(r->pool, headers_out,
r->err_headers_out);
rv = store_table(dobj->hfd, headers_out);
ap_make_content_type(r, r->content_type));
}
+ if (!apr_table_get(headers_out, "Content-Encoding")
+ && r->content_encoding) {
+ apr_table_setn(headers_out, "Content-Encoding",
+ r->content_encoding);
+ }
+
headers_out = apr_table_overlay(r->pool, headers_out, r->err_headers_out);
mobj->header_out = deep_table_copy(mobj->pool, headers_out);