mirror of
https://github.com/nginx/nginx.git
synced 2025-06-13 06:12:44 +08:00
"port_in_redirect off" did not work
the bug had been appeared in r2530 and r2534
This commit is contained in:
parent
2cc2893bc1
commit
bffd3196cf
@ -357,6 +357,9 @@ ngx_http_header_filter(ngx_http_request_t *r)
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
port = (port == 80) ? 0 : port;
|
port = (port == 80) ? 0 : port;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
port = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (port) {
|
if (port) {
|
||||||
|
Loading…
Reference in New Issue
Block a user