Repository: wicket
Updated Branches:
  refs/heads/master 010f0efde -> 637cc9fd9


improve readability with true compare statement


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/637cc9fd
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/637cc9fd
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/637cc9fd

Branch: refs/heads/master
Commit: 637cc9fd908b7ac5dc0ded2e0be8216e7a03a619
Parents: 010f0ef
Author: Sven Meier <[email protected]>
Authored: Thu May 21 16:07:25 2015 +0200
Committer: Sven Meier <[email protected]>
Committed: Thu May 21 16:07:25 2015 +0200

----------------------------------------------------------------------
 .../org/apache/wicket/protocol/http/WicketFilter.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/637cc9fd/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java 
b/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java
index ec35b62..679cfbf 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java
@@ -258,7 +258,11 @@ public class WicketFilter implements Filter
                // Assume we are able to handle the request
                boolean res = true;
 
-               if (!requestCycle.processRequestAndDetach())
+               if (requestCycle.processRequestAndDetach())
+               {
+                       webResponse.flush();
+               }
+               else
                {
                        if (chain != null)
                        {
@@ -266,10 +270,6 @@ public class WicketFilter implements Filter
                        }
                        res = false;
                }
-               else
-               {
-                       webResponse.flush();
-               }
                return res;
        }
 

Reply via email to