changeset 2768:e4a4c889694f

"port_in_redirect off" did not work the bug had been appeared in r2530 and r2534
author Igor Sysoev <igor@sysoev.ru>
date Tue, 28 Apr 2009 06:20:12 +0000
parents caa4f7dcf1e3
children 9d986c4e796f
files src/http/ngx_http_header_filter_module.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_header_filter_module.c
+++ b/src/http/ngx_http_header_filter_module.c
@@ -357,6 +357,9 @@ ngx_http_header_filter(ngx_http_request_
             else
 #endif
                 port = (port == 80) ? 0 : port;
+
+        } else {
+            port = 0;
         }
 
         if (port) {