You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2015/05/21 16:08:02 UTC
wicket git commit: improve readability with true compare statement
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 <sv...@apache.org>
Authored: Thu May 21 16:07:25 2015 +0200
Committer: Sven Meier <sv...@apache.org>
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;
}