]> granicus.if.org Git - apache/commitdiff
this appears to be a "mv" rather than a "swap", so we should be able to
authorGreg Ames <gregames@apache.org>
Tue, 31 Jul 2007 14:54:46 +0000 (14:54 +0000)
committerGreg Ames <gregames@apache.org>
Tue, 31 Jul 2007 14:54:46 +0000 (14:54 +0000)
simplify & shave off a couple of cycles.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@561352 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index d8886af19bb5af2d160df4937a36f21ba5d564eb..54d026fef1babdfca29c49175dd53ff793adb0a1 100644 (file)
@@ -1138,7 +1138,6 @@ 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
@@ -1146,7 +1145,6 @@ 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)) {