Skip to content

Commit 6a4bf64

Browse files
committed
Merge pull request #35 from lefloh/master
#34: Disabling auto-redirect-handling
2 parents 87c69ce + 83d571e commit 6a4bf64

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/com/github/greengerong/PrerenderConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public PreRenderEventHandler getEventHandler() {
4242

4343
public CloseableHttpClient getHttpClient() {
4444
HttpClientBuilder builder = HttpClients.custom()
45-
.setConnectionManager(new PoolingHttpClientConnectionManager());
45+
.setConnectionManager(new PoolingHttpClientConnectionManager())
46+
.disableRedirectHandling();
4647

4748
configureProxy(builder);
4849
configureTimeout(builder);

0 commit comments

Comments
 (0)