mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
include leading slash in path when parsing URLs in URLStreamHandler
This matches the behavior of OpenJDK's version.
This commit is contained in:
@ -40,7 +40,7 @@ public abstract class URLStreamHandler {
|
||||
host = s.substring(0, colon);
|
||||
port = Integer.parseInt(s.substring(colon + 1), slash);
|
||||
}
|
||||
s = s.substring(slash + 1);
|
||||
s = s.substring(slash);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user