Mercurial > hg > nginx-quic
comparison src/http/modules/proxy/ngx_http_proxy_handler.c @ 417:0526206251f6
nginx-0.0.10-2004-09-07-19:29:22 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 07 Sep 2004 15:29:22 +0000 |
parents | 6f3b20c1ac50 |
children | 47709bff4468 |
comparison
equal
deleted
inserted
replaced
416:b9bd635011de | 417:0526206251f6 |
---|---|
1232 | 1232 |
1233 if (u->port == 80) { | 1233 if (u->port == 80) { |
1234 u->default_port = 1; | 1234 u->default_port = 1; |
1235 } | 1235 } |
1236 | 1236 |
1237 u->port = htons((u_short) u->port); | 1237 u->port = htons(u->port); |
1238 return NULL; | 1238 return NULL; |
1239 } | 1239 } |
1240 } | 1240 } |
1241 | 1241 |
1242 return "invalid port in upstream URL"; | 1242 return "invalid port in upstream URL"; |
1263 u->port_text.len = &url->data[i] - u->port_text.data; | 1263 u->port_text.len = &url->data[i] - u->port_text.data; |
1264 | 1264 |
1265 if (u->port_text.len > 0) { | 1265 if (u->port_text.len > 0) { |
1266 u->port = ngx_atoi(u->port_text.data, u->port_text.len); | 1266 u->port = ngx_atoi(u->port_text.data, u->port_text.len); |
1267 if (u->port > 0) { | 1267 if (u->port > 0) { |
1268 u->port = htons((u_short) u->port); | 1268 u->port = htons(u->port); |
1269 return NULL; | 1269 return NULL; |
1270 } | 1270 } |
1271 } | 1271 } |
1272 | 1272 |
1273 return "invalid port in upstream URL"; | 1273 return "invalid port in upstream URL"; |