mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-20 18:47:38 +08:00
🆕 #1320 小程序模块增加订阅消息模板设置相关接口
This commit is contained in:
@@ -25,7 +25,7 @@ public class Utf8ResponseHandler implements ResponseHandler<String> {
|
||||
final HttpEntity entity = response.getEntity();
|
||||
if (statusLine.getStatusCode() >= 300) {
|
||||
EntityUtils.consume(entity);
|
||||
throw new HttpResponseException(statusLine.getStatusCode(), statusLine.getReasonPhrase());
|
||||
throw new HttpResponseException(statusLine.getStatusCode(), statusLine.toString());
|
||||
}
|
||||
return entity == null ? null : EntityUtils.toString(entity, Consts.UTF_8);
|
||||
}
|
||||
|
Reference in New Issue
Block a user