diff --git a/classpath/java/net/URL.java b/classpath/java/net/URL.java index eb46c61860..6cd8e92095 100644 --- a/classpath/java/net/URL.java +++ b/classpath/java/net/URL.java @@ -81,7 +81,11 @@ public final class URL { private static URLStreamHandler findHandler(String protocol) throws MalformedURLException { - if ("resource".equals(protocol)) { + if ("http".equals(protocol)) { + return new avian.file.Handler(); + } else if ("https".equals(protocol)) { + return new avian.file.Handler(); + } else if ("resource".equals(protocol)) { return new avian.resource.Handler(); } else if ("file".equals(protocol)) { return new avian.file.Handler();