Browse Source

update http judge function & doc

Jasper 5 years ago
parent
commit
04a54f88db
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hutool-http/src/main/java/cn/hutool/http/HttpUtil.java

+ 2 - 2
hutool-http/src/main/java/cn/hutool/http/HttpUtil.java

@@ -58,11 +58,11 @@ public class HttpUtil {
 	 * 检测是否http
 	 *
 	 * @param url URL
-	 * @return 是否https
+	 * @return 是否http
 	 * @since 5.3.8
 	 */
 	public static boolean isHttp(String url) {
-		return url.toLowerCase().startsWith("http");
+		return url.toLowerCase().startsWith("http:");
 	}
 
 	/**