Skip to content

Commit aec8064

Browse files
committed
next try
1 parent 124aaa2 commit aec8064

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/htmlunit/WebClient2Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public void toLocaleLowerCase() throws Exception {
391391
public void localFile() throws Exception {
392392
final URL url = getClass().getClassLoader().getResource("simple.html");
393393
String file = url.getFile();
394-
if (file.startsWith("/")) {
394+
if (file.startsWith("/") && file.contains(":")) {
395395
file = file.substring(1);
396396
}
397397

@@ -414,7 +414,7 @@ public void localFile() throws Exception {
414414
public void localFileFile() throws Exception {
415415
final URL url = getClass().getClassLoader().getResource("simple.html");
416416
String file = url.getFile();
417-
if (file.startsWith("/")) {
417+
if (file.startsWith("/") && file.contains(":")) {
418418
file = file.substring(1);
419419
}
420420

0 commit comments

Comments
 (0)