changeset 3461:e51e8ec95b50

use a right "Location" header name, however, it did not harm, since ngx_http_variable_sent_location() never use key name field
author Igor Sysoev <igor@sysoev.ru>
date Wed, 03 Mar 2010 15:08:06 +0000
parents bbea0b19b608
children 546fdeb20a67
files src/http/ngx_http_header_filter_module.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_header_filter_module.c
+++ b/src/http/ngx_http_header_filter_module.c
@@ -538,8 +538,8 @@ ngx_http_header_filter(ngx_http_request_
 
         r->headers_out.location->value.len = b->last - p;
         r->headers_out.location->value.data = p;
-        r->headers_out.location->key.len = sizeof("Location: ") - 1;
-        r->headers_out.location->key.data = (u_char *) "Location: ";
+        r->headers_out.location->key.len = sizeof("Location") - 1;
+        r->headers_out.location->key.data = (u_char *) "Location";
 
         *b->last++ = CR; *b->last++ = LF;
     }