fixed bug
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user