comparison src/http/ngx_http_header_filter_module.c @ 218:1bf60f8c5c9e NGINX_0_3_56

nginx 0.3.56 *) Feature: the "dav_access" directive. *) Feature: the "if" directive supports the "-d", "!-d", "-e", "!-e", "-x", and "!-x" operators. *) Bugfix: a segmentation fault occurred if an request returned an redirect and some sent to client header lines were logged in the access log.
author Igor Sysoev <http://sysoev.ru>
date Fri, 04 Aug 2006 00:00:00 +0400
parents fa32d59d9a15
children 38e7b94d63ac
comparison
equal deleted inserted replaced
217:a346c23fc94e 218:1bf60f8c5c9e
458 458
459 /* update r->headers_out.location->value for possible logging */ 459 /* update r->headers_out.location->value for possible logging */
460 460
461 r->headers_out.location->value.len = b->last - p; 461 r->headers_out.location->value.len = b->last - p;
462 r->headers_out.location->value.data = p; 462 r->headers_out.location->value.data = p;
463 r->headers_out.location->key.len = sizeof("Location: ") - 1;
464 r->headers_out.location->key.data = (u_char *) "Location: ";
463 465
464 *b->last++ = CR; *b->last++ = LF; 466 *b->last++ = CR; *b->last++ = LF;
465 } 467 }
466 468
467 if (r->chunked) { 469 if (r->chunked) {