commit | 62b8393f88b4f5c00dbf2271ab18bce158db77a9 | [log] [tgz] |
---|---|---|
author | Marco Miller <marco.miller@ericsson.com> | Thu Jul 02 09:13:59 2020 -0400 |
committer | Marco Miller <marco.miller@ericsson.com> | Thu Jul 02 09:13:59 2020 -0400 |
tree | 920d4d7df6b66f24c096184b37a75bf350a46e5a | |
parent | 41e558599a965f09a90923dab4c898103e790f17 [diff] | |
parent | 48e314533fdea8f6f191516847fc4008f5baaa1f [diff] |
Merge branch 'stable-3.1' * stable-3.1: Office365OAuthService: Restore Accept header in user info request Upgrade bazlets to latest stable-2.16 Change-Id: I02ab844c30a7b22caa5036e7aefd9a2992baedba
diff --git a/src/main/java/com/googlesource/gerrit/plugins/oauth/Office365OAuthService.java b/src/main/java/com/googlesource/gerrit/plugins/oauth/Office365OAuthService.java index c1380bc..4e0803b 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/oauth/Office365OAuthService.java +++ b/src/main/java/com/googlesource/gerrit/plugins/oauth/Office365OAuthService.java
@@ -80,6 +80,7 @@ OAuthRequest request = new OAuthRequest(Verb.GET, PROTECTED_RESOURCE_URL); OAuth2AccessToken t = new OAuth2AccessToken(token.getToken(), token.getRaw()); service.signRequest(t, request); + request.addHeader("Accept", "*/*"); JsonElement userJson = null; try (Response response = service.execute(request)) {