Revert "Follow redirects in JdkClientHttpRequestFactory"
This reverts commit 7c37f4bc51.
This commit is contained in:
parent
0bf85af8e9
commit
cf008eb9b1
|
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue