Skip to content

Commit e5a7ccd

Browse files
committed
Merge branch 'hotfix_1.10_4.2.x_35904' into '1.10_test_4.2.x'
[hotfix-35904][http] 解决http发送中文乱码 See merge request dt-insight-engine/flinkStreamSQL!255
2 parents fe58714 + 3aeadef commit e5a7ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http/http-sink/src/main/java/com/dtstack/flink/sql/sink/http/DtHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public static void post(String httpUrl,
118118
String contentEncoding) throws IOException {
119119
HttpPost httpPost = new HttpPost(httpUrl);
120120
httpPost.setConfig(requestConfig);
121-
StringEntity entity = new StringEntity(message);
121+
StringEntity entity = new StringEntity(message, contentEncoding);
122122
entity.setContentType(contentType);
123123
entity.setContentEncoding(contentEncoding);
124124
httpPost.setEntity(entity);

0 commit comments

Comments
 (0)