diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ngx_inet.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 687160269..73209c7e0 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -287,6 +287,9 @@ ngx_parse_url(ngx_conf_t *cf, ngx_url_t *u) u->addrs[0].name.len = len + 5; u->addrs[0].name.data = u->url.data; + u->host.len = len; + u->host.data = p; + u->host_header.len = sizeof("localhost") - 1; u->host_header.data = (u_char *) "localhost"; |