Mercurial > hg > nginx-vendor-1-0
comparison src/http/modules/ngx_http_proxy_module.c @ 400:6ebbca3d5ed7 NGINX_0_7_12
nginx 0.7.12
*) Feature: the "server_name" directive supports empty name "".
*) Feature: the "gzip_disable" directive supports special "msie6" mask.
*) Bugfix: if the "max_fails=0" parameter was used in upstream with
several servers, then a worker process exited on a SIGFPE signal.
Thanks to Maxim Dounin.
*) Bugfix: a request body was dropped while redirection via an
"error_page" directive.
*) Bugfix: a full response was returned for request method HEAD while
redirection via an "error_page" directive.
*) Bugfix: the $r->header_in() method did not return value of the
"Host", "User-Agent", and "Connection" request header lines; the bug
had appeared in 0.7.0.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 26 Aug 2008 00:00:00 +0400 |
parents | 9d81578d04bb |
children | 79c5df00501e |
comparison
equal
deleted
inserted
replaced
399:59e324e4d6d3 | 400:6ebbca3d5ed7 |
---|---|
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; |