From: Ruediger Pluem Date: Fri, 28 Sep 2007 11:03:29 +0000 (+0000) Subject: * Revert r561352 as this breaks authentication completely. X-Git-Tag: 2.3.0~1383 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=649da913ef72f964ad77100bbdcd76b001b02c98;p=apache * Revert r561352 as this breaks authentication completely. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@580297 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 54d026fef1..d8886af19b 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1138,6 +1138,7 @@ AP_DECLARE(void) ap_send_error_response(request_rec *r, int recursive_error) } 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 @@ -1145,6 +1146,7 @@ AP_DECLARE(void) ap_send_error_response(request_rec *r, int recursive_error) * 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 (ap_is_HTTP_REDIRECT(status) || (status == HTTP_CREATED)) {