Skip to content

Commit

Permalink
Merge pull request alibaba#692 from wuyoushan/fix_HttpSimpleClient_npe
Browse files Browse the repository at this point in the history
Fix http simple client npe
  • Loading branch information
hxy1991 authored Jan 24, 2019
2 parents 18c841d + b26f9f2 commit abead6a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ static public HttpResult httpGet(String url, List<String> headers, List<String>
static public HttpResult httpPost(String url, List<String> headers, List<String> paramValues,
String encoding, long readTimeoutMs, boolean isSSL) throws IOException {
String encodedContent = encodingParams(paramValues, encoding);
encodedContent = (null == encodedContent) ? "" : encodedContent;
if (Limiter.isLimit(MD5.getInstance().getMD5String(
new StringBuilder(url).append(encodedContent).toString()))) {
return new HttpResult(NacosException.CLIENT_OVER_THRESHOLD,
Expand Down

0 comments on commit abead6a

Please sign in to comment.