Repository: wicket Updated Branches: refs/heads/wicket-6.x ff1ad079c -> 7ee559486
WICKET-5714 MockHttpServletRequest.buildRequest() should work for parameters with multiple values with multipart content type (cherry picked from commit fb1f57f4d2be9534580b3a8e54ce98eb07adf77f) Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/7ee55948 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/7ee55948 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/7ee55948 Branch: refs/heads/wicket-6.x Commit: 7ee559486f53c62947171a150508893c9a5d16d1 Parents: ff1ad07 Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org> Authored: Thu Oct 2 15:14:55 2014 +0200 Committer: Martin Tzvetanov Grigorov <mgrigo...@apache.org> Committed: Thu Oct 2 15:15:12 2014 +0200 ---------------------------------------------------------------------- .../apache/wicket/protocol/http/mock/MockHttpServletRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/7ee55948/wicket-core/src/main/java/org/apache/wicket/protocol/http/mock/MockHttpServletRequest.java ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/protocol/http/mock/MockHttpServletRequest.java b/wicket-core/src/main/java/org/apache/wicket/protocol/http/mock/MockHttpServletRequest.java index 7088d31..66287ff 100755 --- a/wicket-core/src/main/java/org/apache/wicket/protocol/http/mock/MockHttpServletRequest.java +++ b/wicket-core/src/main/java/org/apache/wicket/protocol/http/mock/MockHttpServletRequest.java @@ -1634,7 +1634,7 @@ public class MockHttpServletRequest implements HttpServletRequest out.write("\"".getBytes()); out.write(crlf.getBytes()); out.write(crlf.getBytes()); - out.write(post.getParameterValue(parameterName).toString().getBytes()); + out.write(value.toString().getBytes()); out.write(crlf.getBytes()); } }