]> git.kaiwu.me - nginx.git/commitdiff
use a right "Location" header name, however, it did not harm,
authorIgor Sysoev <igor@sysoev.ru>
Wed, 3 Mar 2010 15:08:06 +0000 (15:08 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 3 Mar 2010 15:08:06 +0000 (15:08 +0000)
since ngx_http_variable_sent_location() never use key name field

src/http/ngx_http_header_filter_module.c

index 0f6f1731a1cc5e7032ccd9dd35a1751aafe6531d..237911154036bd265d1f6a06b25346fa52b3988f 100644 (file)
@@ -538,8 +538,8 @@ ngx_http_header_filter(ngx_http_request_t *r)
 
         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;
     }