diff --git a/SystemExtensions.NetStandard.DependencyInjection/Http/HttpClientBuilder.cs b/SystemExtensions.NetStandard.DependencyInjection/Http/HttpClientBuilder.cs index 0e7fac2..763a768 100644 --- a/SystemExtensions.NetStandard.DependencyInjection/Http/HttpClientBuilder.cs +++ b/SystemExtensions.NetStandard.DependencyInjection/Http/HttpClientBuilder.cs @@ -71,7 +71,7 @@ public sealed class HttpClientBuilder { var client = this.httpMessageHandlerFactory is not null ? new HttpClient(this.httpMessageHandlerFactory(sp), this.disposeMessageHandler) : - new HttpClient(); + new HttpClient(true); client.BaseAddress = this.baseAddress; this.defaultRequestHeadersSetup?.Invoke(client.DefaultRequestHeaders); diff --git a/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj b/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj index 22e1998..02f5813 100644 --- a/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj +++ b/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj @@ -6,7 +6,7 @@ LICENSE true latest - 1.4.1 + 1.6.9 Alexandru Macocian https://github.com/AlexMacocian/SystemExtensions Extensions for the Slim Dependency Injection engine @@ -23,7 +23,7 @@ - +