Skip to content

Commit

Permalink
[Fix] Fix error with Transfer-encoding header already present (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
awol2005ex authored Jan 6, 2025
1 parent 1023235 commit 3ffb6e6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.protocol.HttpRequestExecutor;
import org.apache.http.protocol.RequestContent;

import static org.apache.doris.flink.cfg.ConfigurationOptions.DORIS_REQUEST_CONNECT_TIMEOUT_MS_DEFAULT;
import static org.apache.doris.flink.cfg.ConfigurationOptions.DORIS_REQUEST_READ_TIMEOUT_MS_DEFAULT;
Expand Down Expand Up @@ -64,7 +65,8 @@ protected boolean isRedirectable(String method) {
RequestConfig.custom()
.setConnectTimeout(connectTimeout)
.setConnectionRequestTimeout(connectTimeout)
.build());
.build())
.addInterceptorLast(new RequestContent(true));
}

/**
Expand Down

0 comments on commit 3ffb6e6

Please sign in to comment.