From 1d4c7da1e1c83f40d9734c49964fb5b7d945f692 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Fri, 3 Nov 2017 08:46:56 -0500 Subject: [PATCH] Fix WebTestClientWebConnection for redirects --- .../security/htmlunit/server/WebTestClientWebConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }