Updated Branches: refs/heads/master 31b874d36 -> 0f8a81fb9
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/0f8a81fb Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/0f8a81fb Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/0f8a81fb Branch: refs/heads/master Commit: 0f8a81fb9aceffaa8fc035f203d3e27829a382bb Parents: 31b874d Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Fri Feb 3 12:23:20 2012 +0200 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Fri Feb 3 12:24:18 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/0f8a81fb/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 46dbefc..78dcada 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 @@ -680,7 +680,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)
