Skip to content

Commit

Permalink
Add custom user-agent for Refresher client (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden authored May 12, 2024
2 parents 0cb2737 + 7c5b2b8 commit e077327
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Refresher/UI/PatchForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private void AutoDiscover(object? sender, EventArgs arg)
{
using HttpClient client = new();
client.BaseAddress = autodiscoverUri;
client.DefaultRequestHeaders.UserAgent.ParseAdd("Refresher/3");

HttpResponseMessage response = client.GetAsync("/autodiscover").Result;
response.EnsureSuccessStatusCode();
Expand Down

0 comments on commit e077327

Please sign in to comment.