We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be940a2 commit f4648a9Copy full SHA for f4648a9
1 file changed
core/src/main/java/com/predic8/util/URIUtil.java
@@ -41,7 +41,7 @@ private static String processDecodedPart(String path) {
41
if (path.charAt(0) != '/')
42
return path;
43
String p = removeLocalhost(removeLeadingSlashes(path));
44
- return getPossibleDriveLetter(p).map(driveLetter -> driveLetter + ":" + slashToBackslash(removeDriveLetterAndSlash(p))).orElseGet(() -> "/" + p);
+ return getPossibleDriveLetter(p).map(driveLetter -> driveLetter + ":\\" + slashToBackslash(removeDriveLetterAndSlash(p))).orElseGet(() -> "/" + p);
45
}
46
47
static String removeDriveLetterAndSlash(String path) {
@@ -75,4 +75,4 @@ private static String stripFilePrefix(String uri) {
75
return uri;
76
return uri.substring(5); // Remove "file:"
77
78
-}
+}
0 commit comments