aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/utils/Http.java
diff options
context:
space:
mode:
authorRime <81419447+Emirlol@users.noreply.github.com>2024-06-12 01:03:01 +0300
committerKevinthegreat <92656833+kevinthegreat1@users.noreply.github.com>2024-07-06 16:18:15 +0800
commit1d5752ed624184cf226a495dc441719cc7716d94 (patch)
tree91ce6af901873ff1d966e7ff26224b02029a90e8 /src/main/java/de/hysky/skyblocker/utils/Http.java
parentfaf902eb197c3030683c9bb7a965da7690a43d66 (diff)
downloadSkyblocker-1d5752ed624184cf226a495dc441719cc7716d94.tar.gz
Skyblocker-1d5752ed624184cf226a495dc441719cc7716d94.tar.bz2
Skyblocker-1d5752ed624184cf226a495dc441719cc7716d94.zip
Fix scheduled time being early spring 1st rather than late spring 27th
Also adds more robust handling of get request failures
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/utils/Http.java')
-rw-r--r--src/main/java/de/hysky/skyblocker/utils/Http.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/hysky/skyblocker/utils/Http.java b/src/main/java/de/hysky/skyblocker/utils/Http.java
index 1adf75d3..043ab97f 100644
--- a/src/main/java/de/hysky/skyblocker/utils/Http.java
+++ b/src/main/java/de/hysky/skyblocker/utils/Http.java
@@ -33,7 +33,7 @@ public class Http {
.followRedirects(Redirect.NORMAL)
.build();
- private static ApiResponse sendCacheableGetRequest(String url, @Nullable String token) throws IOException, InterruptedException {
+ public static ApiResponse sendCacheableGetRequest(String url, @Nullable String token) throws IOException, InterruptedException {
HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
.GET()
.header("Accept", "application/json")