Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_header_filter.c')
-rw-r--r--src/http/ngx_http_header_filter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http/ngx_http_header_filter.c b/src/http/ngx_http_header_filter.c
index a083b45f8..595dd59e3 100644
--- 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(ngx_http_request_t *r)
{
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(ngx_http_request_t *r)
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);