Skip to content

Commit

Permalink
Revert "Follow redirects in JdkClientHttpRequestFactory"
Browse files Browse the repository at this point in the history
This reverts commit 7c37f4b.
  • Loading branch information
poutsma committed Jul 6, 2023
1 parent 0bf85af commit cf008eb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit cf008eb

Please sign in to comment.