diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/JsonCoreProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/JsonCoreProvider.java index 74b8ffc3..5cb8e255 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/JsonCoreProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/JsonCoreProvider.java @@ -58,7 +58,7 @@ public static R jsonRequest(T request, String url, String bearerToken, Cl .header("Accept", "application/json") .timeout(Duration.ofMillis(10000)); if (bearerToken != null) { - request1.header("Authentication", "Bearer ".concat(bearerToken)); + request1.header("Authorization", "Bearer ".concat(bearerToken)); } HttpResponse response = client.send(request1.build(), HttpResponse.BodyHandlers.ofInputStream()); int statusCode = response.statusCode();