use a right "Location" header name, however, it did not harm,

since ngx_http_variable_sent_location() never use key name field
This commit is contained in:
Igor Sysoev 2010-03-03 15:08:06 +00:00
parent 593dec8b35
commit e0538991ff

View 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;
}