Mercurial > hg > nginx-vendor-current
diff src/http/ngx_http_header_filter.c @ 6:80ba094c6b3e NGINX_0_1_3
nginx 0.1.3
*) Feature: the ngx_http_autoindex_module and the autoindex directive.
*) Feature: the proxy_set_x_url directive.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 25 Oct 2004 00:00:00 +0400 |
parents | 4b2dafa26fe2 |
children | 46833bd150cb |
line wrap: on
line diff
--- a/src/http/ngx_http_header_filter.c +++ b/src/http/ngx_http_header_filter.c @@ -220,7 +220,7 @@ static ngx_int_t ngx_http_header_filter( { r->headers_out.location->key.len = 0; len += sizeof("Location: http://") - 1 - + r->server_name->len + r->headers_out.location->value.len + 2; + + r->server_name.len + r->headers_out.location->value.len + 2; if (r->port != 80) { len += r->port_text->len; @@ -356,8 +356,8 @@ static ngx_int_t ngx_http_header_filter( p = b->last + sizeof("Location: ") - 1; b->last = ngx_cpymem(b->last, "Location: http://", sizeof("Location: http://") - 1); - b->last = ngx_cpymem(b->last, r->server_name->data, - r->server_name->len); + b->last = ngx_cpymem(b->last, r->server_name.data, + r->server_name.len); if (r->port != 80) { b->last = ngx_cpymem(b->last, r->port_text->data, r->port_text->len);