diff --git a/config/src/test/java/org/springframework/security/htmlunit/server/WebTestClientWebConnection.java b/config/src/test/java/org/springframework/security/htmlunit/server/WebTestClientWebConnection.java index 5d7ae374cb..dc325015a9 100644 --- a/config/src/test/java/org/springframework/security/htmlunit/server/WebTestClientWebConnection.java +++ b/config/src/test/java/org/springframework/security/htmlunit/server/WebTestClientWebConnection.java @@ -84,7 +84,7 @@ public class WebTestClientWebConnection implements WebConnection { long startTime = System.currentTimeMillis(); FluxExchangeResult exchangeResult = this.requestBuilder.getResponse(webRequest); - + webRequest.setUrl(exchangeResult.getUrl().toURL()); return new MockWebResponseBuilder(startTime, webRequest, exchangeResult).build(); }