From 1546f79c7070d9c8a450e7d71bf16c5f0e3256a7 Mon Sep 17 00:00:00 2001 From: Albert Zakiev Date: Thu, 20 Jan 2022 00:38:00 +0300 Subject: [PATCH] Removed explicit header addition --- .../VisualStudioAuthenticationHandler.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/AspNet.Security.OAuth.VisualStudio/VisualStudioAuthenticationHandler.cs b/src/AspNet.Security.OAuth.VisualStudio/VisualStudioAuthenticationHandler.cs index 921262712..9478b503f 100644 --- a/src/AspNet.Security.OAuth.VisualStudio/VisualStudioAuthenticationHandler.cs +++ b/src/AspNet.Security.OAuth.VisualStudio/VisualStudioAuthenticationHandler.cs @@ -72,9 +72,6 @@ protected override async Task ExchangeCodeAsync([NotNull] OA using var request = new HttpRequestMessage(HttpMethod.Post, Options.TokenEndpoint); - // TODO Review whether this is just a copy-paste mistake and is redundant by testing with a real instance - request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/x-www-form-urlencoded")); - request.Content = new FormUrlEncodedContent(tokenRequestParameters); using var response = await Backchannel.SendAsync(request, Context.RequestAborted);