mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-23 10:31:52 +08:00
请求工具新增无内容返回时处理
This commit is contained in:
@@ -284,6 +284,9 @@ public class ClientHttpRequest<T> extends HttpEntityEnclosingRequestBase impleme
|
||||
final StatusLine statusLine = response.getStatusLine();
|
||||
final HttpEntity entity = response.getEntity();
|
||||
|
||||
if (null == entity){
|
||||
return null;
|
||||
}
|
||||
String[] value = null;
|
||||
if (null == entity.getContentType()) {
|
||||
value = new String[]{"application/x-www-form-urlencoded"};
|
||||
|
||||
Reference in New Issue
Block a user