mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
Add rudimentary support for http/https protocols in URL.
This commit is contained in:
parent
9ba7c504da
commit
651b0eb49a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user