Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
hotfix: 小程序二维码创建参数包含中文出现乱码
  • Loading branch information
howardliu-cn committed May 6, 2020
commit dddaa2869c219786062c4ff2245d8b4653308d28
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public File execute(String uri, AbstractWxMaQrcodeWrapper qrcodeWrapper, WxType
);
}

httpPost.setEntity(new StringEntity(qrcodeWrapper.toJson()));
httpPost.setEntity(new StringEntity(qrcodeWrapper.toJson(), ContentType.APPLICATION_JSON));

try (final CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost);
final InputStream inputStream = InputStreamResponseHandler.INSTANCE.handleResponse(response)) {
Expand Down