File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/io/fusionauth/http/server Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -791,15 +791,15 @@ private int getBaseURLServerPort() {
791791 }
792792
793793 // If we don't have a host header, nothing to do here.
794- String hostHeader = getHeader (Headers .XForwardedHost );
795- if (hostHeader == null ) {
794+ String xHost = getHeader (Headers .XForwardedHost );
795+ if (xHost == null ) {
796796 return serverPort ;
797797 }
798798
799799 // If we can pull the port from the X-Forwarded-Host header, let's do that.
800800 // - This is effectively the same as X-Forwarded-Port
801801 try {
802- int hostPort = URI .create ("https://" + hostHeader ).getPort ();
802+ int hostPort = URI .create ("https://" + xHost ).getPort ();
803803 if (hostPort != -1 ) {
804804 return hostPort ;
805805 }
You can’t perform that action at this time.
0 commit comments