From baf22b4b708a5c63672d758ca0d138cbc05950aa Mon Sep 17 00:00:00 2001 From: Patchouli Date: Fri, 8 Nov 2024 13:07:46 -0500 Subject: [PATCH] Fix optionsCallback being ignored --- .../ServiceCollectionExtensions.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Firecrawl.Extensions.DependencyInjection/ServiceCollectionExtensions.cs b/source/Firecrawl.Extensions.DependencyInjection/ServiceCollectionExtensions.cs index 494c1ec..10d5bff 100644 --- a/source/Firecrawl.Extensions.DependencyInjection/ServiceCollectionExtensions.cs +++ b/source/Firecrawl.Extensions.DependencyInjection/ServiceCollectionExtensions.cs @@ -37,6 +37,10 @@ public static IHttpClientBuilder AddFirecrawlHttpClient( var options = new FirecrawlServiceOptions(); + optionsCallback? + .Invoke( + options); + return services .AddHttpClient( FirecrawlHttpClientName,