]> git.kaiwu.me - nginx.git/commitdiff
"port_in_redirect off" did not work
authorIgor Sysoev <igor@sysoev.ru>
Tue, 28 Apr 2009 06:20:12 +0000 (06:20 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 28 Apr 2009 06:20:12 +0000 (06:20 +0000)
the bug had been appeared in r2530 and r2534

src/http/ngx_http_header_filter_module.c

index 21ee3bbd21e239d493a7b21b31d79f11fc358911..332fceb8a0437ec3b3a07e9e58d93a713e14dc2b 100644 (file)
@@ -357,6 +357,9 @@ ngx_http_header_filter(ngx_http_request_t *r)
             else
 #endif
                 port = (port == 80) ? 0 : port;
+
+        } else {
+            port = 0;
         }
 
         if (port) {