diff src/http/ngx_http_header_filter_module.c @ 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 7dc6ebe26e99
children 507fc5ac9839
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) {