Skip to content
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ private HttpEntity buildApacheHttpEntity(
if (wechatPayRequestBody == null) {
return new StringEntity("", "");
}

// 指定ContentType参数为UTF-8, fix issues #352
if (wechatPayRequestBody instanceof JsonRequestBody) {
return new StringEntity(
((JsonRequestBody) wechatPayRequestBody).getBody(),
ContentType.create(wechatPayRequestBody.getContentType()));
ContentType.create(wechatPayRequestBody.getContentType(),"UTF-8"));
}
if (wechatPayRequestBody instanceof FileRequestBody) {
FileRequestBody fileRequestBody = (FileRequestBody) wechatPayRequestBody;
Expand Down
Loading