From 11688f8a53743e41e807aae1179a6d552d87372e Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 10 May 2004 19:53:35 +0000 Subject: nginx-0.0.3-2004-05-10-23:53:35 import --- src/http/modules/proxy/ngx_http_proxy_handler.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/http/modules/proxy/ngx_http_proxy_handler.c') diff --git a/src/http/modules/proxy/ngx_http_proxy_handler.c b/src/http/modules/proxy/ngx_http_proxy_handler.c index 027dc3ccc..8aa339772 100644 --- a/src/http/modules/proxy/ngx_http_proxy_handler.c +++ b/src/http/modules/proxy/ngx_http_proxy_handler.c @@ -1202,6 +1202,11 @@ static char *ngx_http_proxy_parse_upstream(ngx_str_t *url, if (u->port_text.len > 0) { u->port = ngx_atoi(u->port_text.data, u->port_text.len); if (u->port > 0) { + + if (u->port == 80) { + u->default_port = 1; + } + u->port = htons((u_short) u->port); return NULL; } -- cgit v1.2.3