Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_proxy_module.c @ 2203:8e5bf1bc87e2
*) refactor ngx_parse_inet_url()
*) refactor ngx_parse_unix_domain_url()
*) delete unused ngx_url_t fields
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 26 Aug 2008 14:24:14 +0000 |
parents | 274c0f3ea600 |
children | f62751dab60d |
comparison
equal
deleted
inserted
replaced
2202:2300ab9b069e | 2203:8e5bf1bc87e2 |
---|---|
2544 | 2544 |
2545 static ngx_int_t | 2545 static ngx_int_t |
2546 ngx_http_proxy_set_vars(ngx_pool_t *pool, ngx_url_t *u, | 2546 ngx_http_proxy_set_vars(ngx_pool_t *pool, ngx_url_t *u, |
2547 ngx_http_proxy_vars_t *v) | 2547 ngx_http_proxy_vars_t *v) |
2548 { | 2548 { |
2549 if (!u->unix_socket) { | 2549 if (u->family != AF_UNIX) { |
2550 if (u->no_port || u->port == u->default_port) { | 2550 if (u->no_port || u->port == u->default_port) { |
2551 v->host_header = u->host; | 2551 v->host_header = u->host; |
2552 | 2552 |
2553 if (u->default_port == 80) { | 2553 if (u->default_port == 80) { |
2554 v->port.len = sizeof("80") - 1; | 2554 v->port.len = sizeof("80") - 1; |