🐛 reslove compatibility of new simple-http util

This commit is contained in:
Mvbbb 2021-09-15 12:50:25 +08:00
parent 97763a4c6d
commit 073e7d6b16
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}