comparison src/http/ngx_http_header_filter_module.c @ 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 e0bc43a52382
children 546fdeb20a67
comparison
equal deleted inserted replaced
3460:bbea0b19b608 3461:e51e8ec95b50
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) {