mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-03 03:49:09 +00:00
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…
x
Reference in New Issue
Block a user