summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle2
-rw-r--r--src/main/java/cc/polyfrost/oneconfigloader/OneConfigLoader.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index fa905d1..454942f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,7 +7,7 @@ plugins {
id "java"
}
-version = "1.0.0-alpha2"
+version = "1.0.0-alpha4"
group = "cc.polyfrost"
archivesBaseName = rootProject.name
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) {