Mercurial > hg > nginx
diff src/http/ngx_http_header_filter.c @ 457:ded1284520cc release-0.1.3
nginx-0.1.3-RELEASE import
*) 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 <igor@sysoev.ru> |
---|---|
date | Mon, 25 Oct 2004 15:29:23 +0000 |
parents | 295d97d70c69 |
children | a88a3e4e158f |
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);