Skip to content

Commit c152a7d

Browse files
serbermartincostello
authored andcommitted
Removed explicit header addition
1 parent ac68fd4 commit c152a7d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/AspNet.Security.OAuth.VisualStudio/VisualStudioAuthenticationHandler.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ protected override async Task<OAuthTokenResponse> ExchangeCodeAsync([NotNull] OA
7272

7373
using var request = new HttpRequestMessage(HttpMethod.Post, Options.TokenEndpoint);
7474

75-
// TODO Review whether this is just a copy-paste mistake and is redundant by testing with a real instance
76-
request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/x-www-form-urlencoded"));
77-
7875
request.Content = new FormUrlEncodedContent(tokenRequestParameters);
7976

8077
using var response = await Backchannel.SendAsync(request, Context.RequestAborted);

0 commit comments

Comments
 (0)