mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
修复调用【上传临时素材文件】接口返回 44001 多媒体文件为空的问题 #209
This commit is contained in:
parent
c80621cf16
commit
ac257dd31c
@ -40,7 +40,6 @@ public class ApacheMediaUploadRequestExecutor extends MediaUploadRequestExecutor
|
|||||||
.setMode(HttpMultipartMode.RFC6532)
|
.setMode(HttpMultipartMode.RFC6532)
|
||||||
.build();
|
.build();
|
||||||
httpPost.setEntity(entity);
|
httpPost.setEntity(entity);
|
||||||
httpPost.setHeader("Content-Type", ContentType.MULTIPART_FORM_DATA.toString());
|
|
||||||
}
|
}
|
||||||
try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost)) {
|
try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost)) {
|
||||||
String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response);
|
String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response);
|
||||||
|
Loading…
Reference in New Issue
Block a user