next.js
5b16b599 - fix: x-forwarded-port header is 'undefined' when no port in url (#60484)

Commit
1 year ago
fix: x-forwarded-port header is 'undefined' when no port in url (#60484) ### What? See this issue - https://github.com/vercel/next.js/issues/61133 following this change https://github.com/vercel/next.js/pull/57815 `x-forwarded-port` header value is 'undefined' if the URL has no port ### Why? x-forwarded-port 'undefined' makes other http-proxy throw 405 error for the invalid header value ### How? Give default 80 port if the URL has no port --------- Co-authored-by: Ethan Arrowood <ethan@arrowood.dev>
Author
Committer
Parents
Loading