mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 15:49:26 +00:00
Leave query un-encoded in MockMvc request builder
Issue: SPR-12880
This commit is contained in:
+1
-2
@@ -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