Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[#1596] make change compatible with change already on branch 1.2.x / …

…1.3.x (all vs ALL)
  • Loading branch information...
commit f57675807859c7ac10cf297bfc025b1f2f3fcec8 1 parent d16fe49
@Notalifeform Notalifeform authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  framework/src/play/mvc/Http.java
View
2  framework/src/play/mvc/Http.java
@@ -374,7 +374,7 @@ public static Request createRequest(
protected void parseXForwarded() {
if (Play.configuration.containsKey("XForwardedSupport") && headers.get("x-forwarded-for") != null) {
- if (!"ALL".equals(Play.configuration.getProperty("XForwardedSupport")) && !Arrays.asList(Play.configuration.getProperty("XForwardedSupport", "127.0.0.1").split("[\\s,]+")).contains(remoteAddress)) {
+ if (!"ALL".equalsIgnoreCase(Play.configuration.getProperty("XForwardedSupport")) && !Arrays.asList(Play.configuration.getProperty("XForwardedSupport", "127.0.0.1").split("[\\s,]+")).contains(remoteAddress)) {
throw new RuntimeException("This proxy request is not authorized: " + remoteAddress);
} else {
secure = isRequestSecure();
Please sign in to comment.
Something went wrong with that request. Please try again.