Skip to content

Commit

Permalink
Set HTTP user agent header (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl authored Sep 12, 2024
1 parent 3e4b2cb commit ea8a227
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dfe.Academies.Academisation.WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
{
client.BaseAddress = new Uri(url);
client.DefaultRequestHeaders.Add("ApiKey", configuration.GetValue<string>("AcademiesApiKey"));
client.DefaultRequestHeaders.Add("User-Agent", "AcademisationApi/1.0");
}
else
{
Expand Down

0 comments on commit ea8a227

Please sign in to comment.