fixed bug

This commit is contained in:
SearchNull
2021-12-29 10:33:43 +08:00
parent 6eeb047d22
commit 31f6f12160

View File

@@ -146,7 +146,7 @@ public class HttpUtil {
}
if (line.startsWith("Host")) {
host = line.split(":")[1].trim();
host = line.substring(line.indexOf(":") + 1).trim();
if (host.startsWith("https://")) {
protocol = "https";
}