diff --git a/classpath/java/net/URL.java b/classpath/java/net/URL.java index 874eec964b..018be16512 100644 --- a/classpath/java/net/URL.java +++ b/classpath/java/net/URL.java @@ -71,7 +71,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();