Browse Source

Merge pull request #1208 from jasperchen912/v5-dev

update http judge function & doc
Golden Looly 5 years ago
parent
commit
a6eeb708ed
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:");
 	}
 
 	/**