Merge pull request #1208 from jasperchen912/v5-dev

update http judge function & doc
This commit is contained in:
Golden Looly 2020-11-10 10:33:15 +08:00 committed by GitHub
commit a6eeb708ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:");
}
/**