From: Greg Ames Date: Tue, 31 Jul 2007 14:54:46 +0000 (+0000) Subject: this appears to be a "mv" rather than a "swap", so we should be able to X-Git-Tag: 2.3.0~1675 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63cd255945f382ec84db73e02b0b354be8b9354e;p=apache this appears to be a "mv" rather than a "swap", so we should be able to 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 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index d8886af19b..54d026fef1 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -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)) {