Commit 930b0ce0 authored by Van's avatar Van

🎨 ignore https

parent dd60a69e
...@@ -213,7 +213,7 @@ public final class Solos { ...@@ -213,7 +213,7 @@ public final class Solos {
*/ */
public static JSONObject getGitHubUserInfo(final String accessToken) { public static JSONObject getGitHubUserInfo(final String accessToken) {
try { try {
final HttpResponse res = HttpRequest.get("https://hacpai.com/github/user?ak=" + accessToken). final HttpResponse res = HttpRequest.get("https://hacpai.com/github/user?ak=" + accessToken).trustAllCerts(true).
connectionTimeout(3000).timeout(7000).header("User-Agent", Solos.USER_AGENT).send(); connectionTimeout(3000).timeout(7000).header("User-Agent", Solos.USER_AGENT).send();
if (HttpServletResponse.SC_OK != res.statusCode()) { if (HttpServletResponse.SC_OK != res.statusCode()) {
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment