diff --git a/Dfe.PrepareTransfers.Web/Startup.cs b/Dfe.PrepareTransfers.Web/Startup.cs index caf4a5b8..d3b1a668 100644 --- a/Dfe.PrepareTransfers.Web/Startup.cs +++ b/Dfe.PrepareTransfers.Web/Startup.cs @@ -251,6 +251,7 @@ private static void AddServices(IServiceCollection services, IConfiguration conf httpClient.BaseAddress = new Uri(tramsApiBase); httpClient.DefaultRequestHeaders.Add("ApiKey", tramsApiKey); httpClient.DefaultRequestHeaders.Add("ContentType", "application/json"); + httpClient.DefaultRequestHeaders.Add("User-Agent", "PrepareTransfers/1.0"); }); services.AddHttpClient("AcademisationApiClient", httpClient => @@ -258,6 +259,7 @@ private static void AddServices(IServiceCollection services, IConfiguration conf httpClient.BaseAddress = new Uri(academisationApiBase); httpClient.DefaultRequestHeaders.Add("x-api-key", academisationApiKey); httpClient.DefaultRequestHeaders.Add("ContentType", "application/json"); + httpClient.DefaultRequestHeaders.Add("User-Agent", "PrepareTransfers/1.0"); }); services.AddScoped();