Fix WebTestClientWebConnection for redirects
This commit is contained in:
parent
06c4bffc5f
commit
1d4c7da1e1
|
@ -84,7 +84,7 @@ public class WebTestClientWebConnection implements WebConnection {
|
|||
long startTime = System.currentTimeMillis();
|
||||
|
||||
FluxExchangeResult<String> exchangeResult = this.requestBuilder.getResponse(webRequest);
|
||||
|
||||
webRequest.setUrl(exchangeResult.getUrl().toURL());
|
||||
return new MockWebResponseBuilder(startTime, webRequest, exchangeResult).build();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue