Skip to content

Commit

Permalink
[Fix][Connector-V2] Fix doris TRANSFER_ENCODING header error (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx authored Jul 26, 2024
1 parent 31e59cd commit d886495
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.apache.http.impl.client.DefaultRedirectStrategy;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.protocol.RequestContent;

/** util to build http client. */
public class HttpUtil {
Expand All @@ -32,7 +33,8 @@ public class HttpUtil {
protected boolean isRedirectable(String method) {
return true;
}
});
})
.addInterceptorLast(new RequestContent(true));;

public CloseableHttpClient getHttpClient() {
return httpClientBuilder.build();
Expand Down

0 comments on commit d886495

Please sign in to comment.