diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2010-03-03 15:08:06 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2010-03-03 15:08:06 +0000 |
| commit | e0538991ffe0937ec3f0eee7b9494979ea16239b (patch) | |
| tree | 9d1c2cc3a0c1d61acaf25dfe970f6e93a444663c | |
| parent | 593dec8b35e3997a18592e678845dedea28a57ef (diff) | |
| download | nginx-e0538991ffe0937ec3f0eee7b9494979ea16239b.tar.gz nginx-e0538991ffe0937ec3f0eee7b9494979ea16239b.tar.bz2 | |
use a right "Location" header name, however, it did not harm,
since ngx_http_variable_sent_location() never use key name field
| -rw-r--r-- | src/http/ngx_http_header_filter_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c index 0f6f1731a..237911154 100644 --- 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_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; } |
