diff --git a/LauncherCore/src/main/java11/pro/gravit/launcher/HTTPRequest.java b/LauncherCore/src/main/java11/pro/gravit/launcher/HTTPRequest.java index 3c4462e7..eef69ae4 100644 --- a/LauncherCore/src/main/java11/pro/gravit/launcher/HTTPRequest.java +++ b/LauncherCore/src/main/java11/pro/gravit/launcher/HTTPRequest.java @@ -39,6 +39,7 @@ public static JsonElement jsonRequest(JsonElement request, String method, URL ur .uri(url.toURI()) .header("Content-Type", "application/json; charset=UTF-8") .header("Accept", "application/json") + .header("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36") .timeout(Duration.ofMillis(TIMEOUT)) .build(); HttpResponse response = client.send(request1, HttpResponse.BodyHandlers.ofInputStream());