Skip to content

Commit

Permalink
Add application/zip to acceptable library types (SKCraft#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgehog1029 authored Aug 17, 2022
2 parents 460070e + c61575d commit 9060af7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private boolean tryDownloadLibrary(Library library, Library.Artifact artifact, S
try {
log.info("Downloading library " + library.getName() + " from " + url + "...");
HttpRequest.get(url).execute().expectResponseCode(200)
.expectContentType("application/java-archive", "application/octet-stream")
.expectContentType("application/java-archive", "application/octet-stream", "application/zip")
.saveContent(tempFile);
} catch (IOException e) {
log.info("Could not get file from " + url + ": " + e.getMessage());
Expand Down

0 comments on commit 9060af7

Please sign in to comment.