Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-05-10 23:53:35 +0400
committerIgor Sysoev <igor@sysoev.ru>2004-05-10 23:53:35 +0400
commit11688f8a53743e41e807aae1179a6d552d87372e (patch)
tree736c3ea779a813391ba0acf21e2e2cd08546b8d9 /src/http/modules/proxy
parent5aeeb2dc4687c38386f2440a56f29758a53b5551 (diff)
nginx-0.0.3-2004-05-10-23:53:35 import
Diffstat (limited to 'src/http/modules/proxy')
-rw-r--r--src/http/modules/proxy/ngx_http_proxy_handler.c5
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;
}