mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing
This commit is contained in:
+2
-2
@@ -700,8 +700,8 @@ public class MockHttpServletRequestBuilder
|
||||
|
||||
String query = this.url.getRawQuery();
|
||||
if (!this.queryParams.isEmpty()) {
|
||||
String s = UriComponentsBuilder.newInstance().queryParams(this.queryParams).build().encode().getQuery();
|
||||
query = StringUtils.isEmpty(query) ? s : query + "&" + s;
|
||||
String str = UriComponentsBuilder.newInstance().queryParams(this.queryParams).build().encode().getQuery();
|
||||
query = StringUtils.hasLength(query) ? (query + "&" + str) : str;
|
||||
}
|
||||
if (query != null) {
|
||||
request.setQueryString(query);
|
||||
|
||||
Reference in New Issue
Block a user