mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Restore mixed use of uri() and queryParam()
for query parameters in AbstractMockHttpServletRequestBuilder. See gh-35329 Signed-off-by: Johnny Lim <izeye@naver.com>
This commit is contained in:
+1
-1
@@ -826,7 +826,7 @@ public abstract class AbstractMockHttpServletRequestBuilder<B extends AbstractMo
|
||||
addRequestParams(request, UriComponentsBuilder.fromUri(uri).build().getQueryParams());
|
||||
|
||||
this.parameters.forEach((name, values) ->
|
||||
request.setParameter(name, values.toArray(new String[0])));
|
||||
request.addParameter(name, values.toArray(new String[0])));
|
||||
|
||||
if (!this.formFields.isEmpty()) {
|
||||
if (this.content != null && this.content.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user