未验证 提交 54d19ebf 编写于 作者: 智布道's avatar 智布道 👁 提交者: GitHub

Merge pull request #12 from Mvbbb/dev

Solve the compatibility problems caused by the new version of 'simple-http'
...@@ -214,9 +214,9 @@ public class Oauth2Util { ...@@ -214,9 +214,9 @@ public class Oauth2Util {
String res = null; String res = null;
if (null == endpointMethodType || Oauth2EndpointMethodType.GET == endpointMethodType) { if (null == endpointMethodType || Oauth2EndpointMethodType.GET == endpointMethodType) {
res = HttpUtil.get(url, params, false); res = HttpUtil.get(url, params, false).getBody();
} else { } else {
res = HttpUtil.post(url, params, false); res = HttpUtil.post(url, params, false).getBody();
} }
return JsonUtil.parseKv(res); return JsonUtil.parseKv(res);
} }
......
...@@ -45,7 +45,7 @@ public class OidcUtil { ...@@ -45,7 +45,7 @@ public class OidcUtil {
String response = null; String response = null;
try { try {
response = HttpUtil.get(discoveryUrl); response = HttpUtil.get(discoveryUrl).getBody();
} catch (Exception e) { } catch (Exception e) {
throw new OidcException("Cannot access discovery url: " + discoveryUrl); throw new OidcException("Cannot access discovery url: " + discoveryUrl);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册