Explorar el Código

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

master
Binary Wang hace 7 años
padre
commit
ac257dd31c
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. +0
    -1
      weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaUploadRequestExecutor.java

+ 0
- 1
weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/apache/ApacheMediaUploadRequestExecutor.java Ver fichero

@@ -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);


Cargando…
Cancelar
Guardar