comparison 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
comparison
equal deleted inserted replaced
331:f168a88e93f7 332:159dd60d257a
1200 u->port_text.len = &url->data[i] - u->port_text.data; 1200 u->port_text.len = &url->data[i] - u->port_text.data;
1201 1201
1202 if (u->port_text.len > 0) { 1202 if (u->port_text.len > 0) {
1203 u->port = ngx_atoi(u->port_text.data, u->port_text.len); 1203 u->port = ngx_atoi(u->port_text.data, u->port_text.len);
1204 if (u->port > 0) { 1204 if (u->port > 0) {
1205
1206 if (u->port == 80) {
1207 u->default_port = 1;
1208 }
1209
1205 u->port = htons((u_short) u->port); 1210 u->port = htons((u_short) u->port);
1206 return NULL; 1211 return NULL;
1207 } 1212 }
1208 } 1213 }
1209 1214