aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_header_filter_module.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c
index 1874b5783..5e1be0ecc 100644
--- a/src/http/ngx_http_header_filter_module.c
+++ b/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;