Commit e90672db authored by Liang Ding's avatar Liang Ding

🔒 忽略社区证书报错

parent 930b0ce0
...@@ -56,7 +56,7 @@ import java.util.ResourceBundle; ...@@ -56,7 +56,7 @@ import java.util.ResourceBundle;
* Solo utilities. * Solo utilities.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.6.0.1, Jan 29, 2019 * @version 1.6.0.2, Jan 30, 2019
* @since 2.8.0 * @since 2.8.0
*/ */
public final class Solos { public final class Solos {
...@@ -177,7 +177,7 @@ public final class Solos { ...@@ -177,7 +177,7 @@ public final class Solos {
*/ */
public static JSONArray getGitHubRepos(final String githubUserId) { public static JSONArray getGitHubRepos(final String githubUserId) {
try { try {
final HttpResponse res = HttpRequest.get("https://hacpai.com/github/repos?id=" + githubUserId). final HttpResponse res = HttpRequest.get("https://hacpai.com/github/repos?id=" + githubUserId).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