diff --git a/backend/src/main/java/io/dataease/commons/utils/HttpClientUtil.java b/backend/src/main/java/io/dataease/commons/utils/HttpClientUtil.java index fb71455a64..70565fed75 100755 --- a/backend/src/main/java/io/dataease/commons/utils/HttpClientUtil.java +++ b/backend/src/main/java/io/dataease/commons/utils/HttpClientUtil.java @@ -86,9 +86,6 @@ public class HttpClientUtil { for (String key : header.keySet()) { httpGet.addHeader(key, header.get(key)); } - - httpGet.addHeader(HTTP.CONTENT_ENCODING, config.getCharset()); - HttpResponse response = httpClient.execute(httpGet); return getResponseStr(response, config); } catch (Exception e) { @@ -124,9 +121,6 @@ public class HttpClientUtil { for (String key : header.keySet()) { httpPost.addHeader(key, header.get(key)); } - httpPost.addHeader(HTTP.CONTENT_TYPE, "application/json"); - httpPost.addHeader(HTTP.CONTENT_ENCODING, config.getCharset()); - EntityBuilder entityBuilder = EntityBuilder.create(); entityBuilder.setText(json); entityBuilder.setContentType(ContentType.APPLICATION_JSON); @@ -180,8 +174,6 @@ public class HttpClientUtil { for (String key : header.keySet()) { httpPost.addHeader(key, header.get(key)); } - httpPost.addHeader(HTTP.CONTENT_ENCODING, config.getCharset()); - if (body != null && body.size() > 0) { List nvps = new ArrayList<>(); for (String key : body.keySet()) {