Skip to content

Commit

Permalink
Add scheme part to URI.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Feb 18, 2023
1 parent d94d66a commit b42f78b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ public URL run() {
try {
String path = URLEncoder.encode(typeName.replace('.', '/'), ENCODING);
URLStreamHandler handler = new ByteArrayUrlStreamHandler(binaryRepresentation);
URL url = DISPATCHER.of(URI.create(URL_SCHEMA + ":/" + path), handler);
URL url = DISPATCHER.of(URI.create(URL_SCHEMA + "://" + path), handler);
return url == null
? DISPATCHER.make(URL_SCHEMA, path, NO_PORT, NO_FILE, handler)
: url;
Expand Down

0 comments on commit b42f78b

Please sign in to comment.