summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorThomas Becker2011-09-13 08:22:09 (EDT)
committer Joakim Erdfelt2011-09-13 14:58:30 (EDT)
commit670e8de26192fd13017a5e390ab29b7207a66eeb (patch)
tree98996cbed8d35e4325d7fe323c0a3429403c3028
parent82f48ada9a947183922b28619356f29366e8a3d4 (diff)
downloadorg.eclipse.jetty.project-670e8de26192fd13017a5e390ab29b7207a66eeb.zip
org.eclipse.jetty.project-670e8de26192fd13017a5e390ab29b7207a66eeb.tar.gz
org.eclipse.jetty.project-670e8de26192fd13017a5e390ab29b7207a66eeb.tar.bz2
352050: Fixed infinite redirect loop for /remote.html in testapp
-rw-r--r--test-jetty-webapp/src/main/java/com/acme/TestFilter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-jetty-webapp/src/main/java/com/acme/TestFilter.java b/test-jetty-webapp/src/main/java/com/acme/TestFilter.java
index 3712a2c..18758dd 100644
--- a/test-jetty-webapp/src/main/java/com/acme/TestFilter.java
+++ b/test-jetty-webapp/src/main/java/com/acme/TestFilter.java
@@ -73,7 +73,7 @@ public class TestFilter implements Filter
String to = request.getServerName();
String path=((HttpServletRequest)request).getServletPath();
- if (!_remote && !_allowed.contains(path) && (
+ if (!"/remote.html".equals(path) && !_remote && !_allowed.contains(path) && (
!from.equals("localhost") && !from.startsWith("127.") && from.indexOf(":1")<0 ||
!to.equals("localhost")&&!to.startsWith("127.0.0.") && to.indexOf(":1")<0))
{