https://bz.apache.org/bugzilla/show_bug.cgi?id=61860
--- Comment #3 from Luca Toscano <toscano.l...@gmail.com> --- Eric the following bit in ap_send_error_respose (called after ap_die) puzzles me: if (!r->assbackwards) { apr_table_t *tmp = r->headers_out; /* For all HTTP/1.x responses for which we generate the message, * we need to avoid inheriting the "normal status" header fields * that may have been set by the request handler before the * error or redirect, except for Location on external redirects. */ r->headers_out = r->err_headers_out; r->err_headers_out = tmp; apr_table_clear(r->err_headers_out); If I comment everything but the apr_table_clear line I get no header duplication (but clearing err_headers_out causes more things like Content-Lenght, Accept-Ranges, etc.. to be included). I am not getting what's happening in here, in my opinion a simple apr_table_clear(r->headers_out) would be sufficient to preserve only the headers that we need but I am surely missing something.. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org For additional commands, e-mail: bugs-h...@httpd.apache.org