🐛 #1547 修复小程序二维码创建参数包含中文时出现乱码的问题

This commit is contained in:
Howard Liu 2020-05-07 09:33:44 +08:00 committed by GitHub
parent eb38e86a78
commit 8f5a9e0d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ public class QrcodeRequestExecutor implements RequestExecutor<File, AbstractWxMa
);
}
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)) {