Repository: wicket Updated Branches: refs/heads/master f6ee84e5f -> 41e71f9de
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/41e71f9d Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/41e71f9d Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/41e71f9d Branch: refs/heads/master Commit: 41e71f9de5d84f24b80da12d2c5bd76216a5cf00 Parents: f6ee84e 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:20 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/41e71f9d/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 5baddfa..5acc2a5 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 @@ -1672,7 +1672,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()); } }