1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-27 12:46:22 +01:00

Add application/zip to acceptable library types (#483)

This commit is contained in:
Henry 2022-08-17 01:16:29 +01:00 committed by GitHub
commit 9060af7dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,7 +265,7 @@ public class PackageBuilder {
try { try {
log.info("Downloading library " + library.getName() + " from " + url + "..."); log.info("Downloading library " + library.getName() + " from " + url + "...");
HttpRequest.get(url).execute().expectResponseCode(200) HttpRequest.get(url).execute().expectResponseCode(200)
.expectContentType("application/java-archive", "application/octet-stream") .expectContentType("application/java-archive", "application/octet-stream", "application/zip")
.saveContent(tempFile); .saveContent(tempFile);
} catch (IOException e) { } catch (IOException e) {
log.info("Could not get file from " + url + ": " + e.getMessage()); log.info("Could not get file from " + url + ": " + e.getMessage());