diff src/http/modules/proxy/ngx_http_proxy_handler.c @ 332:159dd60d257a

nginx-0.0.3-2004-05-10-23:53:35 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 10 May 2004 19:53:35 +0000
parents 1308b98496a2
children ca9a7f8c86da
line wrap: on
line diff
--- 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_upstre
             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;
                 }