Skip to content

Commit

Permalink
fix(binding_http): let HTTP client use the withTrustedRoots parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Nov 4, 2024
1 parent 28fbb08 commit e7dc1fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/binding_http/http_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? [];

Expand Down

0 comments on commit e7dc1fe

Please sign in to comment.