You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In HttpServletRequests, below method is reading header and parsing it with Int.
public static int getPort(final HttpServletRequest req) {
final String forwardedPort = req.getHeader("x-forwarded-port");
return
forwardedPort == null
? req.getServerPort()
: Integer.parseInt(forwardedPort)
;
}
Issue: Many implementations will have x-forwarded-port with multiple port numbers with comma separated. like "443,443", they will get NumberFormatException while parsing. Please fix the issue as it is a blocker to use the redirect call in these scenarios.
The text was updated successfully, but these errors were encountered:
In HttpServletRequests, below method is reading header and parsing it with Int.
Issue: Many implementations will have x-forwarded-port with multiple port numbers with comma separated. like "443,443", they will get NumberFormatException while parsing. Please fix the issue as it is a blocker to use the redirect call in these scenarios.
The text was updated successfully, but these errors were encountered: