diff options
author | Brady <thatgravyboat@gmail.com> | 2024-06-17 05:50:30 -0230 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 10:20:30 +0200 |
commit | c6e3e87e6fecb8dd735047881a5080449501d086 (patch) | |
tree | 6c87673e7c549fed0c60afa7684df19329d46b1d /src | |
parent | 8504f491d43a0dcccd45d598cac9abdcb96f915b (diff) | |
download | skyhanni-c6e3e87e6fecb8dd735047881a5080449501d086.tar.gz skyhanni-c6e3e87e6fecb8dd735047881a5080449501d086.tar.bz2 skyhanni-c6e3e87e6fecb8dd735047881a5080449501d086.zip |
Fix error where query is not checked for github instead path is (#2111)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java index 862d17186..3f4755be3 100644 --- a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java +++ b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java @@ -121,7 +121,7 @@ public class DownloadSourceChecker { URI host = getHost(file); if (host == null) return null; - if (host.getHost().equals("objects.githubusercontent.com") && host.getPath().contains(GITHUB_REPO_TEXT)) { + if (host.getHost().equals("objects.githubusercontent.com") && host.getQuery().contains(GITHUB_REPO_TEXT)) { return null; } else if (host.getHost().equals("cdn.modrinth.com") && host.getPath().startsWith(MODRINTH_URL)) { return null; |