From c25e83518c7f338b81c76abb2c3c226261936aac Mon Sep 17 00:00:00 2001 From: Todd Date: Fri, 20 Oct 2023 13:34:28 -0500 Subject: [PATCH] trying again --- test/Flurl.Test/Http/FlurlClientBuilderTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Flurl.Test/Http/FlurlClientBuilderTests.cs b/test/Flurl.Test/Http/FlurlClientBuilderTests.cs index 8e0a0312..a2fa0667 100644 --- a/test/Flurl.Test/Http/FlurlClientBuilderTests.cs +++ b/test/Flurl.Test/Http/FlurlClientBuilderTests.cs @@ -59,7 +59,7 @@ public void inner_hanlder_is_SocketsHttpHandler_when_supported() { #endif if (supported) { Console.WriteLine($"{shh.FullName} Found in {typeof(HttpClientHandler).Assembly.FullName}"); - supported = (bool)shh.GetProperty("IsSupported").GetValue(Activator.CreateInstance(shh)); + supported = shh.GetProperty("IsSupported")?.GetValue(Activator.CreateInstance(shh)) as bool? == true; Console.WriteLine($"IsSupported = {supported}"); }