Leave query un-encoded in MockMvc request builder
Issue: SPR-12880
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user