diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-04-28 06:20:12 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-28 06:20:12 +0000 |
| commit | bffd3196cfd7f262b659fb0b2cab98822d7f79c5 (patch) | |
| tree | 3de59d9e4f40094bae1bb2e7db9aa179a73dc826 /src | |
| parent | 2cc2893bc169e32365c04154a0e80d63f8b07b10 (diff) | |
| download | nginx-bffd3196cfd7f262b659fb0b2cab98822d7f79c5.tar.gz nginx-bffd3196cfd7f262b659fb0b2cab98822d7f79c5.tar.bz2 | |
"port_in_redirect off" did not work
the bug had been appeared in r2530 and r2534
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/ngx_http_header_filter_module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c index 21ee3bbd2..332fceb8a 100644 --- 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_t *r) else #endif port = (port == 80) ? 0 : port; + + } else { + port = 0; } if (port) { |
