Skip to content

Commit

Permalink
Enable Custom Cookie Container
Browse files Browse the repository at this point in the history
Respect if the application has added a custom cookie container already.
  • Loading branch information
AdrianJSClark committed Mar 3, 2022
1 parent c74ca9c commit e7823be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aydsko.iRacingData/ServicesExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static class ServicesExtensions
{
public static IServiceCollection AddIRacingDataApi(this IServiceCollection services)
{
services.AddSingleton(new CookieContainer());
services.TryAddSingleton(new CookieContainer());

services.AddHttpClient<iRacingDataClient>()
.ConfigurePrimaryHttpMessageHandler(services => new HttpClientHandler
Expand Down

0 comments on commit e7823be

Please sign in to comment.