diff options
Diffstat (limited to 'src/main/java')
-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) { |