Skip to content

Commit ac257dd

Browse files
committed
修复调用【上传临时素材文件】接口返回 44001 多媒体文件为空的问题 binarywang#209
1 parent c80621c commit ac257dd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaUploadRequestExecutor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public WxMediaUploadResult execute(String uri, File file) throws WxErrorExceptio
4040
.setMode(HttpMultipartMode.RFC6532)
4141
.build();
4242
httpPost.setEntity(entity);
43-
httpPost.setHeader("Content-Type", ContentType.MULTIPART_FORM_DATA.toString());
4443
}
4544
try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost)) {
4645
String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response);

0 commit comments

Comments
 (0)