Updated Branches:
  refs/heads/wicket-1.5.x ed0596c80 -> d6b64ded2

Do use 'desiredMethod'


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

Branch: refs/heads/wicket-1.5.x
Commit: d6b64ded2e4e7811b9df3bff36fd8b3ea5008dfe
Parents: ed0596c
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Fri Feb 3 12:23:20 2012 +0200
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Mon Feb 6 10:32:21 2012 +0200

----------------------------------------------------------------------
 .../org/apache/wicket/markup/html/form/Form.java   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/d6b64ded/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java 
b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java
index 3db22c8..561b596 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Form.java
@@ -674,7 +674,7 @@ public class Form<T> extends WebMarkupContainer implements 
IFormSubmitListener
                {
                        String desiredMethod = getMethod();
                        String actualMethod = 
((HttpServletRequest)getRequest().getContainerRequest()).getMethod();
-                       if (!actualMethod.equalsIgnoreCase(getMethod()))
+                       if (!actualMethod.equalsIgnoreCase(desiredMethod))
                        {
                                MethodMismatchResponse response = 
onMethodMismatch();
                                switch (response)

Reply via email to