diff --git a/lib/src/binding_http/http_client.dart b/lib/src/binding_http/http_client.dart index 30b0b5b9..5be7e8a6 100644 --- a/lib/src/binding_http/http_client.dart +++ b/lib/src/binding_http/http_client.dart @@ -54,7 +54,9 @@ final class HttpClient extends ProtocolClient IOClient(io.HttpClient(context: _createContext(httpClientConfig))); static SecurityContext _createContext(HttpClientConfig? httpClientConfig) { - final context = SecurityContext(); + final context = SecurityContext( + withTrustedRoots: httpClientConfig?.withTrustedRoots ?? true, + ); final trustedCertificates = httpClientConfig?.trustedCertificates ?? [];