Skip to content

Commit f4648a9

Browse files
authored
fixed Windows path format
1 parent be940a2 commit f4648a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/com/predic8/util/URIUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private static String processDecodedPart(String path) {
4141
if (path.charAt(0) != '/')
4242
return path;
4343
String p = removeLocalhost(removeLeadingSlashes(path));
44-
return getPossibleDriveLetter(p).map(driveLetter -> driveLetter + ":" + slashToBackslash(removeDriveLetterAndSlash(p))).orElseGet(() -> "/" + p);
44+
return getPossibleDriveLetter(p).map(driveLetter -> driveLetter + ":\\" + slashToBackslash(removeDriveLetterAndSlash(p))).orElseGet(() -> "/" + p);
4545
}
4646

4747
static String removeDriveLetterAndSlash(String path) {
@@ -75,4 +75,4 @@ private static String stripFilePrefix(String uri) {
7575
return uri;
7676
return uri.substring(5); // Remove "file:"
7777
}
78-
}
78+
}

0 commit comments

Comments
 (0)