mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 10:38:42 +08:00 
			
		
		
		
	修复调用【上传临时素材文件】接口返回 44001 多媒体文件为空的问题 #209
This commit is contained in:
		| @ -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); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang