1
0
mirror of synced 2026-05-22 21:53:18 +00:00

⬆️ 升级 simple-http 到 1.0.5

This commit is contained in:
yadong.zhang
2021-09-18 00:35:42 +08:00
parent 2de0ad5013
commit 644ef02264
36 changed files with 135 additions and 91 deletions
@@ -52,7 +52,7 @@ public class AuthGithubRequest extends AuthDefaultRequest {
protected AuthUser getUserInfo(AuthToken authToken) {
HttpHeader header = new HttpHeader();
header.add("Authorization", "token " + authToken.getAccessToken());
String response = new HttpUtils(config.getHttpConfig()).get(UrlBuilder.fromBaseUrl(source.userInfo()).build(), null, header, false);
String response = new HttpUtils(config.getHttpConfig()).get(UrlBuilder.fromBaseUrl(source.userInfo()).build(), null, header, false).getBody();
JSONObject object = JSONObject.parseObject(response);
this.checkResponse(object.containsKey("error"), object.getString("error_description"));