I hate my life
continuous-integration/drone/push Build is passing Details

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-02-02 21:36:31 +01:00
parent 99bf1e1077
commit 7e0207c248
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,10 @@ namespace BirdsiteLive
services.AddControllersWithViews();
services.AddHttpClient("BirdsiteLIVE", httpClient => {
httpClient.DefaultRequestHeaders.Add("User-Agent", $"BirdsiteLIVE/{Program.VERSION}; +https://{Configuration["Instance:Domain"]}");
ProductInfoHeaderValue product = new($"BirdsiteLIVE/{Program.VERSION}");
ProductInfoHeaderValue comment = new($"(+https://{Configuration["Instance:Domain"]})");
httpClient.DefaultRequestHeaders.UserAgent.Add(product);
httpClient.DefaultRequestHeaders.UserAgent.Add(comment);
});
}