From f49b0bb95a6fb1a57ede507927b175fbe3fafc7e Mon Sep 17 00:00:00 2001 From: Patchouli Date: Sat, 16 Nov 2024 16:27:48 -0500 Subject: [PATCH] Fix exception due to improper HTTP client construction --- source/Kagi/KagiService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/Kagi/KagiService.cs b/source/Kagi/KagiService.cs index 925175a..4ebe2dc 100644 --- a/source/Kagi/KagiService.cs +++ b/source/Kagi/KagiService.cs @@ -54,7 +54,11 @@ private static HttpClient CreateHttpClient( var httpClient = new HttpClient( - new KagiDelegatingHandler(), + new KagiDelegatingHandler() + { + InnerHandler = + new HttpClientHandler() + }, disposeHandler: true); // Set the base URL for the client to use.