-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) mod_cache: Wrong content type and character set when
+ mod_cache serves stale content because of a proxy error.
+ PR 53539. [Rainer Jung, Ruediger Pluem]
+
*) core: Be less strict when checking whether Content-Type is set to
"application/x-www-form-urlencoded" when parsing POST data,
or we risk losing data with an appended charset. PR 53698
apr_bucket_brigade *bb = apr_brigade_create(r->pool,
r->connection->bucket_alloc);
+ /* restore content type of cached response */
+ ap_set_content_type(r, apr_table_get(cache->handle->resp_hdrs,
+ "Content-Type"));
+
/* restore status of cached response */
r->status = cache->handle->cache_obj->info.status;
r->err_headers_out = cache->stale_handle->resp_hdrs;
- ap_set_content_type(r, apr_table_get(
- cache->stale_handle->resp_hdrs, "Content-Type"));
-
/* add a revalidation warning */
warn_head = apr_table_get(r->err_headers_out, "Warning");
if ((warn_head == NULL) || ((warn_head != NULL)