Revert "Follow redirects in JdkClientHttpRequestFactory"

This reverts commit 7c37f4bc51.
This commit is contained in:
Arjen Poutsma 2023-07-06 15:53:35 +02:00
parent 0bf85af8e9
commit cf008eb9b1
1 changed files with 2 additions and 4 deletions

View File

@ -48,12 +48,10 @@ public class JdkClientHttpRequestFactory implements ClientHttpRequestFactory {
/**
* Create a new instance of the {@code JdkClientHttpRequestFactory}
* with a default {@link HttpClient} that follows redirects.
* with a default {@link HttpClient}.
*/
public JdkClientHttpRequestFactory() {
this(HttpClient.newBuilder()
.followRedirects(HttpClient.Redirect.NORMAL)
.build());
this(HttpClient.newHttpClient());
}
/**