mirror of
https://gitee.com/fujieid/jap.git
synced 2024-12-02 03:17:33 +08:00
🐛 reslove compatibility of new simple-http util
This commit is contained in:
parent
97763a4c6d
commit
073e7d6b16
@ -214,9 +214,9 @@ public class Oauth2Util {
|
||||
|
||||
String res = null;
|
||||
if (null == endpointMethodType || Oauth2EndpointMethodType.GET == endpointMethodType) {
|
||||
res = HttpUtil.get(url, params, false);
|
||||
res = HttpUtil.get(url, params, false).getBody();
|
||||
} else {
|
||||
res = HttpUtil.post(url, params, false);
|
||||
res = HttpUtil.post(url, params, false).getBody();
|
||||
}
|
||||
return JsonUtil.parseKv(res);
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ public class OidcUtil {
|
||||
|
||||
String response = null;
|
||||
try {
|
||||
response = HttpUtil.get(discoveryUrl);
|
||||
response = HttpUtil.get(discoveryUrl).getBody();
|
||||
} catch (Exception e) {
|
||||
throw new OidcException("Cannot access discovery url: " + discoveryUrl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user