Leave query un-encoded in MockMvc request builder

Issue: SPR-12880
This commit is contained in:
Rossen Stoyanchev
2015-04-06 22:43:25 -04:00
parent 6f5359e40c
commit 0b8554f94a
2 changed files with 3 additions and 4 deletions

View File

@@ -581,8 +581,7 @@ public class MockHttpServletRequestBuilder
try {
if (this.uriComponents.getQuery() != null) {
String query = UriUtils.decode(this.uriComponents.getQuery(), "UTF-8");
request.setQueryString(query);
request.setQueryString(this.uriComponents.getQuery());
}
for (Entry<String, List<String>> entry : this.uriComponents.getQueryParams().entrySet()) {