comparison src/http/ngx_http_header_filter_module.c @ 3580:667c22171519 stable-0.7

merge r3452, r3462, r3471, r3472: fix miscellaneous name bugs: *) fix $upstream_http_ variable prefix length *) use a right "Location" header name, however, it did not harm, since ngx_http_variable_sent_location() never use key name field *) fix proxy_redirect name in error message *) "proxy_redirect default" may not be used if a proxy_pass uses variables
author Igor Sysoev <igor@sysoev.ru>
date Mon, 07 Jun 2010 09:36:33 +0000
parents b0fbe6ab9ebe
children
comparison
equal deleted inserted replaced
3579:d612c9374453 3580:667c22171519
536 536
537 /* update r->headers_out.location->value for possible logging */ 537 /* update r->headers_out.location->value for possible logging */
538 538
539 r->headers_out.location->value.len = b->last - p; 539 r->headers_out.location->value.len = b->last - p;
540 r->headers_out.location->value.data = p; 540 r->headers_out.location->value.data = p;
541 r->headers_out.location->key.len = sizeof("Location: ") - 1; 541 r->headers_out.location->key.len = sizeof("Location") - 1;
542 r->headers_out.location->key.data = (u_char *) "Location: "; 542 r->headers_out.location->key.data = (u_char *) "Location";
543 543
544 *b->last++ = CR; *b->last++ = LF; 544 *b->last++ = CR; *b->last++ = LF;
545 } 545 }
546 546
547 if (r->chunked) { 547 if (r->chunked) {