We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b60c1 commit d543accCopy full SHA for d543acc
src/test/java/com/saasquatch/json_schema_inferrer/JsonSchemaInferrerExamplesTest.java
@@ -141,9 +141,10 @@ public JsonNode handleEntity(HttpEntity entity) throws IOException {
141
142
private static String processGitHubDownloadUrl(String url, String commitHash) {
143
try {
144
+ // Use jsdelivr to speed up the downloads
145
final String host = new URL(url).getHost();
146
url = url.replaceFirst(host, "cdn.jsdelivr.net/gh");
- url = url.replace('/' + commitHash, '@' + commitHash);
147
+ url = url.replaceFirst('/' + commitHash, '@' + commitHash);
148
return url;
149
} catch (IOException e) {
150
throw new UncheckedIOException(e);
0 commit comments