Skip to content

Commit cf008eb

Browse files
committed
Revert "Follow redirects in JdkClientHttpRequestFactory"
This reverts commit 7c37f4b.
1 parent 0bf85af commit cf008eb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spring-web/src/main/java/org/springframework/http/client/JdkClientHttpRequestFactory.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,10 @@ public class JdkClientHttpRequestFactory implements ClientHttpRequestFactory {
4848

4949
/**
5050
* Create a new instance of the {@code JdkClientHttpRequestFactory}
51-
* with a default {@link HttpClient} that follows redirects.
51+
* with a default {@link HttpClient}.
5252
*/
5353
public JdkClientHttpRequestFactory() {
54-
this(HttpClient.newBuilder()
55-
.followRedirects(HttpClient.Redirect.NORMAL)
56-
.build());
54+
this(HttpClient.newHttpClient());
5755
}
5856

5957
/**

0 commit comments

Comments
 (0)