aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorBrady <thatgravyboat@gmail.com>2024-06-17 05:50:30 -0230
committerGitHub <noreply@github.com>2024-06-17 10:20:30 +0200
commitc6e3e87e6fecb8dd735047881a5080449501d086 (patch)
tree6c87673e7c549fed0c60afa7684df19329d46b1d /src/main/java/at/hannibal2
parent8504f491d43a0dcccd45d598cac9abdcb96f915b (diff)
downloadskyhanni-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/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java2
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;