diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2004-09-07 15:29:22 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2004-09-07 15:29:22 +0000 |
| commit | 59cf56c5d975725be9e2adc84170ffe0c638fa48 (patch) | |
| tree | d355ce8975bbcacc29cdf54ffac45c84b55649a0 /src/http/modules/proxy/ngx_http_proxy_handler.c | |
| parent | aab4d8c0c4aa068cc7ddcb1c5daee330d9dec47a (diff) | |
| download | nginx-59cf56c5d975725be9e2adc84170ffe0c638fa48.tar.gz nginx-59cf56c5d975725be9e2adc84170ffe0c638fa48.tar.bz2 | |
nginx-0.0.10-2004-09-07-19:29:22 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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/proxy/ngx_http_proxy_handler.c b/src/http/modules/proxy/ngx_http_proxy_handler.c index 711aad2f4..af9760c2e 100644 --- a/src/http/modules/proxy/ngx_http_proxy_handler.c +++ b/src/http/modules/proxy/ngx_http_proxy_handler.c @@ -1234,7 +1234,7 @@ static char *ngx_http_proxy_parse_upstream(ngx_str_t *url, u->default_port = 1; } - u->port = htons((u_short) u->port); + u->port = htons(u->port); return NULL; } } @@ -1265,7 +1265,7 @@ 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) { - u->port = htons((u_short) u->port); + u->port = htons(u->port); return NULL; } } |
