mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
use avian.http.Handler for http(s) URLs, not avian.file.Handler
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user