mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] JsonAuthCoreProvider Bearer header
This commit is contained in:
parent
93fdd7f899
commit
fb7a552843
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ public static <T, R> 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<InputStream> response = client.send(request1.build(), HttpResponse.BodyHandlers.ofInputStream());
|
||||
int statusCode = response.statusCode();
|
||||
|
|
Loading…
Reference in a new issue