use avian.http.Handler for http(s) URLs, not avian.file.Handler

This commit is contained in:
Joel Dice
2012-02-27 13:38:47 -07:00
parent 574a8ea1e2
commit b5fda8ee13
3 changed files with 29 additions and 5 deletions

View File

@ -81,10 +81,8 @@ public final class URL {
private static URLStreamHandler findHandler(String protocol)
throws MalformedURLException
{
if ("http".equals(protocol)) {
return new avian.file.Handler();
} else if ("https".equals(protocol)) {
return new avian.file.Handler();
if ("http".equals(protocol) || "https".equals(protocol)) {
return new avian.http.Handler();
} else if ("resource".equals(protocol)) {
return new avian.resource.Handler();
} else if ("file".equals(protocol)) {