diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-11 15:43:52 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-11 15:43:52 +0200 |
commit | 20b0882182c6212da7da6bb3386ca345e73bae34 (patch) | |
tree | 5cae8f4d1dc5010896f303782118838bcd676655 /src/main/java/cc | |
parent | 05a26ea4a8f0da89e8895176feefbe55e59c8f81 (diff) | |
download | OneConfigLoader-20b0882182c6212da7da6bb3386ca345e73bae34.tar.gz OneConfigLoader-20b0882182c6212da7da6bb3386ca345e73bae34.tar.bz2 OneConfigLoader-20b0882182c6212da7da6bb3386ca345e73bae34.zip |
user agent
Diffstat (limited to 'src/main/java/cc')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfigloader/OneConfigLoader.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfigloader/OneConfigLoader.java b/src/main/java/cc/polyfrost/oneconfigloader/OneConfigLoader.java index fa0121b..25f8071 100644 --- a/src/main/java/cc/polyfrost/oneconfigloader/OneConfigLoader.java +++ b/src/main/java/cc/polyfrost/oneconfigloader/OneConfigLoader.java @@ -128,6 +128,7 @@ public class OneConfigLoader implements IFMLLoadingPlugin { try { URL url = new URL(site); HttpsURLConnection con = (HttpsURLConnection) url.openConnection(); + con.setRequestProperty("User-Agent", "OneConfig-Loader"); con.setRequestMethod("GET"); int status = con.getResponseCode(); if (status != 200) { |