X-Git-Url: http://git.rot13.org/?p=nginx.git;a=blobdiff_plain;f=nginx%2Fsrc%2Fhttp%2Fngx_http_header_filter_module.c;h=5e1be0ecce8993715b88b36bdeeb90dceb03de43;hp=1874b57830b9ccc329863dce58ee7f0d8e154396;hb=a90f3dd9fbdd4e92ff65a9f0554794d283ef92bc;hpb=edef48fd7f4269957bc636301b0ffc73a16f9a4a diff --git a/nginx/src/http/ngx_http_header_filter_module.c b/nginx/src/http/ngx_http_header_filter_module.c index 1874b57..5e1be0e 100644 --- a/nginx/src/http/ngx_http_header_filter_module.c +++ b/nginx/src/http/ngx_http_header_filter_module.c @@ -322,12 +322,12 @@ ngx_http_header_filter(ngx_http_request_t *r) if (clcf->port_in_redirect) { #if (NGX_HTTP_SSL) - if (r->connection->ssl) - port = (port == 443) ? 0 : port; - else + if (r->connection->ssl) + port = (port == 443) ? 0 : port; + else #endif - port = (port == 80) ? 0 : port; - } + port = (port == 80) ? 0 : port; + } if (port) { len += sizeof(":65535") - 1;