Skip to content

Commit

Permalink
Rollback to keep file check for resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
HURIEZ Mathis authored and HURIEZ Mathis committed Mar 26, 2024
1 parent d3c155c commit 1b83241
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,6 @@ private static boolean canOpenUrl(final String resource_name)
//Stream is not OK for a https
URL url = new URL(resource_name);
url.openConnection();
// int responseCode = huc.getResponseCode();
// Assert.assertEquals(HttpURLConnection.HTTP_OK, responseCode);
canOpenUrl = true;
}
catch (Exception ex)
Expand Down Expand Up @@ -431,7 +429,7 @@ public static InputStream openResourceStream(final String resource_name) throws
// final long milli = Math.round(1000 + Math.random()*4000);
// Thread.sleep(milli);
// }
if (resource_name.startsWith("http"))
if (resource_name.startsWith("http") || resource_name.startsWith("file:/"))
return openURL(resource_name);

// Handle legacy RCP URL
Expand Down

0 comments on commit 1b83241

Please sign in to comment.