# HG changeset patch # User Igor Sysoev # Date 1240899612 0 # Node ID e4a4c889694f1cc2fbdab2da44b85e41cda14398 # Parent caa4f7dcf1e31efe40f391bfddac6f5d37084192 "port_in_redirect off" did not work the bug had been appeared in r2530 and r2534 diff -r caa4f7dcf1e3 -r e4a4c889694f src/http/ngx_http_header_filter_module.c --- a/src/http/ngx_http_header_filter_module.c Tue Apr 28 04:34:27 2009 +0000 +++ b/src/http/ngx_http_header_filter_module.c Tue Apr 28 06:20:12 2009 +0000 @@ -357,6 +357,9 @@ else #endif port = (port == 80) ? 0 : port; + + } else { + port = 0; } if (port) {