diff options
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r-- | cli/file_fetcher.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs index 18d78c514..e69756b20 100644 --- a/cli/file_fetcher.rs +++ b/cli/file_fetcher.rs @@ -112,7 +112,8 @@ impl SourceFileFetcher { cache_blacklist: Vec<String>, no_remote: bool, cached_only: bool, - ) -> std::io::Result<Self> { + ca_file: Option<String>, + ) -> Result<Self, ErrBox> { let file_fetcher = Self { deps_cache, progress, @@ -121,7 +122,7 @@ impl SourceFileFetcher { use_disk_cache, no_remote, cached_only, - http_client: create_http_client(), + http_client: create_http_client(ca_file)?, }; Ok(file_fetcher) @@ -862,6 +863,7 @@ mod tests { vec![], false, false, + None, ) .expect("setup fail") } |