Update MicrosoftAuthTask.java

This commit is contained in:
ArtDev 2020-12-15 17:41:19 +03:00 committed by GitHub
parent 444739eacb
commit d2e87bd4e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());