From fb7a55284358ee8a2be74efec52a18d62711d453 Mon Sep 17 00:00:00 2001 From: Gravita Date: Mon, 23 Aug 2021 15:56:08 +0700 Subject: [PATCH] [FIX] JsonAuthCoreProvider Bearer header --- .../pro/gravit/launchserver/auth/core/JsonCoreProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();