Hi Ed,
On Tue, Sep 15, 2015 at 10:10 PM, Edward Lu <[email protected]> wrote:
> This looks like a bug. I believe I've tracked down the cause to a single
> errant line in the cache module; can you apply the attached patch to 2.4.x
> and see if it fixes the problem?
I think the patch would also need this hunk:
Index: modules/cache/mod_cache.c
===================================================================
--- modules/cache/mod_cache.c (revision 1703149)
+++ modules/cache/mod_cache.c (working copy)
@@ -1462,6 +1462,7 @@ static apr_status_t cache_save_filter(ap_filter_t
* forward all of them to the client, including non-cacheable ones).
*/
r->headers_out = cache_merge_headers_out(r);
+ apr_table_clear(r->err_headers_out);
/* Merge in our cached headers. However, keep any updated values. */
/* take output, overlay on top of cached */
--
Otherwise we might leave this path with some headers both in
headers_out and err_headers_out.
Regards,
Yann.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]