mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-19 17:17:04 -04:00
Update MicrosoftAuthTask.java
This commit is contained in:
@@ -253,8 +253,8 @@ public class MicrosoftAuthTask extends AsyncTask<String, Void, Object> {
|
||||
|
||||
HttpRequest request = HttpRequest.newBuilder(uri)
|
||||
.header("Authorization", "Bearer " + mcAccessToken)
|
||||
// .header("Content-Type", "application/json")
|
||||
// .header("Accept", "application/json")
|
||||
.header("Content-Type", "application/json")
|
||||
.header("Accept", "application/json")
|
||||
.GET().build();
|
||||
|
||||
HttpResponse resp = HttpClient.newBuilder().build().sendRequest(request, HttpResponse.BodyHandlers.ofString());
|
||||
|
||||
Reference in New Issue
Block a user