Browse Source

Fix okhttp3 downgrade

pull/23582/head
Brian Clozel 5 years ago
parent
commit
cccd9c8bb0
  1. 2
      spring-web/src/test/java/org/springframework/http/client/AbstractMockWebServerTests.java

2
spring-web/src/test/java/org/springframework/http/client/AbstractMockWebServerTests.java

@ -66,10 +66,10 @@ public abstract class AbstractMockWebServerTests { @@ -66,10 +66,10 @@ public abstract class AbstractMockWebServerTests {
assertThat(request.getHeader("Host"))
.contains("localhost:" + port);
MockResponse response = new MockResponse()
.setHeaders(request.getHeaders())
.setHeader("Content-Length", request.getBody().size())
.setResponseCode(200)
.setBody(request.getBody());
response.headers(request.getHeaders());
request.getBody().flush();
return response;
}

Loading…
Cancel
Save