Update MicrosoftAuthTask.java
This commit is contained in:
1 parent
444739eacb
commit
d2e87bd4e3
1 file changed
+2
-2
+2
-2
@@ -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