Permalink
Browse files

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

…1.3.x (all vs ALL)
  • Loading branch information...
1 parent d16fe49 commit f57675807859c7ac10cf297bfc025b1f2f3fcec8 @Notalifeform Notalifeform committed Jan 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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();

0 comments on commit f576758

Please sign in to comment.