Browse Source

Fix test failure

pull/1651/head
Rossen Stoyanchev 8 years ago
parent
commit
84cc7ffdf6
  1. 2
      spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java

2
spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java

@ -116,7 +116,7 @@ public class ServletServerHttpRequest implements ServerHttpRequest { @@ -116,7 +116,7 @@ public class ServletServerHttpRequest implements ServerHttpRequest {
this.uri = new URI(urlString);
}
catch (URISyntaxException ex) {
if (true || !hasQuery) {
if (!hasQuery) {
throw new IllegalStateException("Could not resolve HttpServletRequest as URI: " + urlString, ex);
}
// Maybe a malformed query string... try plain request URL

Loading…
Cancel
Save