Skip to content

Commit 8592fe5

Browse files
committed
cleanup
1 parent 6b85cef commit 8592fe5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/io/fusionauth/http/server/HTTPRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)