]> granicus.if.org Git - apache/commitdiff
* Revert r561352 as this breaks authentication completely.
authorRuediger Pluem <rpluem@apache.org>
Fri, 28 Sep 2007 11:03:29 +0000 (11:03 +0000)
committerRuediger Pluem <rpluem@apache.org>
Fri, 28 Sep 2007 11:03:29 +0000 (11:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@580297 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 54d026fef1babdfca29c49175dd53ff793adb0a1..d8886af19bb5af2d160df4937a36f21ba5d564eb 100644 (file)
@@ -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)) {