diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-05-10 19:53:35 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-05-10 19:53:35 +0000 |
commit | 11688f8a53743e41e807aae1179a6d552d87372e (patch) | |
tree | 736c3ea779a813391ba0acf21e2e2cd08546b8d9 /src/http/modules/proxy/ngx_http_proxy_handler.c | |
parent | 5aeeb2dc4687c38386f2440a56f29758a53b5551 (diff) | |
download | nginx-11688f8a53743e41e807aae1179a6d552d87372e.tar.gz nginx-11688f8a53743e41e807aae1179a6d552d87372e.zip |
nginx-0.0.3-2004-05-10-23:53:35 import
Diffstat (limited to 'src/http/modules/proxy/ngx_http_proxy_handler.c')
-rw-r--r-- | src/http/modules/proxy/ngx_http_proxy_handler.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |