aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/utils/Http.java
diff options
context:
space:
mode:
authormsg-programs <msgdoesstuff@gmail.com>2023-10-31 21:07:06 +0100
committermsg-programs <msgdoesstuff@gmail.com>2023-10-31 21:07:06 +0100
commita01aa5b3672bda1e500f61eef6740d59949d1d2a (patch)
tree2a7f17964999a8d7fa7ad23fd62c36be76cb8750 /src/main/java/de/hysky/skyblocker/utils/Http.java
parentd560c4611e603fa9e72ff6842bc14518d7bdbd63 (diff)
downloadSkyblocker-a01aa5b3672bda1e500f61eef6740d59949d1d2a.tar.gz
Skyblocker-a01aa5b3672bda1e500f61eef6740d59949d1d2a.tar.bz2
Skyblocker-a01aa5b3672bda1e500f61eef6740d59949d1d2a.zip
Delete more whitespace on empty lines.
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/utils/Http.java')
-rw-r--r--src/main/java/de/hysky/skyblocker/utils/Http.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/hysky/skyblocker/utils/Http.java b/src/main/java/de/hysky/skyblocker/utils/Http.java
index 4c8a3ada..82ab6c5e 100644
--- a/src/main/java/de/hysky/skyblocker/utils/Http.java
+++ b/src/main/java/de/hysky/skyblocker/utils/Http.java
@@ -36,7 +36,7 @@ public class Http {
public static String sendGetRequest(String url) throws IOException, InterruptedException {
return sendCacheableGetRequest(url).content();
}
-
+
private static ApiResponse sendCacheableGetRequest(String url) throws IOException, InterruptedException {
HttpRequest request = HttpRequest.newBuilder()
.GET()
@@ -80,10 +80,10 @@ public class Http {
public static ApiResponse sendHypixelRequest(String endpoint, @NotNull String query) throws IOException, InterruptedException {
return sendCacheableGetRequest(HYPIXEL_PROXY + endpoint + query);
}
-
+
private static InputStream getDecodedInputStream(HttpResponse<InputStream> response) {
String encoding = getContentEncoding(response.headers());
-
+
try {
switch (encoding) {
case "":