Merge pull request #251 from inghamn/patch-1
Prioritize X-Forwarded-Host when choosing the service parameter
This commit is contained in:
commit
52274f828f
|
|
@ -238,11 +238,7 @@ public final class CommonUtils {
|
|||
final String xHost = request.getHeader("X-Forwarded-Host");
|
||||
|
||||
final String comparisonHost;
|
||||
if (xHost != null && host == "localhost") {
|
||||
comparisonHost = xHost;
|
||||
} else {
|
||||
comparisonHost = host;
|
||||
}
|
||||
comparisonHost = (xHost != null) ? xHost : host;
|
||||
|
||||
if (comparisonHost == null) {
|
||||
return serverName;
|
||||
|
|
|
|||
Loading…
Reference in New Issue