请求代理

This commit is contained in:
egzosn
2019-07-15 11:31:24 +08:00
parent ad3df4fa79
commit f3310aab91
2 changed files with 2 additions and 1 deletions

View File

@@ -332,7 +332,7 @@ public class HttpRequestTemplate {
}
ClientHttpRequest<T> httpRequest = new ClientHttpRequest(uri ,method, request, null == configStorage ? null : configStorage.getCharset());
//判断是否有代理设置
if (null == httpProxy){
if (null != httpProxy){
httpRequest.setProxy(httpProxy);
}
httpRequest.setResponseType(responseType);