Skip to content

Commit

Permalink
change header value
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Feb 6, 2024
1 parent 696f6fc commit fc2296c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public async Task<IActionResult> HandleAuthorizationCallbackAsync([FromQuery(Nam
using (HttpRequestMessage requestMessage = new(HttpMethod.Get, "https://api.github.com/user"))
{
requestMessage.Headers.Accept.Add(new("application/vnd.github+json"));
requestMessage.Headers.UserAgent.Add(new("Snap.Hutao.Server"));
requestMessage.Headers.UserAgent.Add(new("Snap Hutao Server/1.0"));
requestMessage.Headers.Authorization = new("Bearer", accessTokenResponse.AccessToken);

using (HttpResponseMessage responseMessage = await httpClient.SendAsync(requestMessage))
Expand Down

0 comments on commit fc2296c

Please sign in to comment.