mirror of
https://github.com/nginx/nginx.git
synced 2026-10-25 05:23:31 +00: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue