orbiter 16 years ago
parent c3a4aee255
commit 3e9dcfc204

@ -88,6 +88,7 @@ public final class HTTPLoader {
} }
final String host = request.url().getHost(); final String host = request.url().getHost();
if (host == null || host.length() < 2) throw new IOException("host is not well-formed: '" + host + "'");
final String path = request.url().getFile(); final String path = request.url().getFile();
int port = request.url().getPort(); int port = request.url().getPort();
final boolean ssl = request.url().getProtocol().equals("https"); final boolean ssl = request.url().getProtocol().equals("https");

Loading…
Cancel
Save