projects
/
nginx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upstream nginx-0.7.40
[nginx.git]
/
nginx
/
src
/
http
/
ngx_http_header_filter_module.c
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
(file)
--- 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 (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
#endif
- port = (port == 80) ? 0 : port;
- }
+
port = (port == 80) ? 0 : port;
+
}
if (port) {
len += sizeof(":65535") - 1;
if (port) {
len += sizeof(":65535") - 1;