修复调用【上传临时素材文件】接口返回 44001 多媒体文件为空的问题 #209

This commit is contained in:
Binary Wang 2017-05-29 14:23:09 +08:00
parent c80621cf16
commit ac257dd31c

View File

@ -40,7 +40,6 @@ public class ApacheMediaUploadRequestExecutor extends MediaUploadRequestExecutor
.setMode(HttpMultipartMode.RFC6532)
.build();
httpPost.setEntity(entity);
httpPost.setHeader("Content-Type", ContentType.MULTIPART_FORM_DATA.toString());
}
try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost)) {
String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response);