diff --git a/src/main/java/com/yutou/tools/utils/HttpTools.java b/src/main/java/com/yutou/tools/utils/HttpTools.java index 9ffff5d..445cf01 100644 --- a/src/main/java/com/yutou/tools/utils/HttpTools.java +++ b/src/main/java/com/yutou/tools/utils/HttpTools.java @@ -30,8 +30,8 @@ public class HttpTools { public static String https_get(String url, Map header) { try { - HttpsURLConnection connection; - connection = (HttpsURLConnection) new URL(url).openConnection(); + URLConnection connection; + connection = new URL(url).openConnection(); connection.setConnectTimeout(60*1000); connection.setReadTimeout(60*1000); connection.setRequestProperty("User-Agent", getExtUa());