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}
|
* Create a new instance of the {@code JdkClientHttpRequestFactory}
|
||||||
* with a default {@link HttpClient} that follows redirects.
|
* with a default {@link HttpClient}.
|
||||||
*/
|
*/
|
||||||
public JdkClientHttpRequestFactory() {
|
public JdkClientHttpRequestFactory() {
|
||||||
this(HttpClient.newBuilder()
|
this(HttpClient.newHttpClient());
|
||||||
.followRedirects(HttpClient.Redirect.NORMAL)
|
|
||||||
.build());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue