summaryrefslogtreecommitdiff
path: root/cli/file_fetcher.rs
diff options
context:
space:
mode:
authorgeoFlux <blakejason5@gmail.com>2020-02-17 11:59:51 -0500
committerGitHub <noreply@github.com>2020-02-17 11:59:51 -0500
commit2e7d449623b7faee8feb0a2970e0d6bb7c66b409 (patch)
tree4b3cae1d91709391fcc8facc2d2dca409349f026 /cli/file_fetcher.rs
parent98e585a284f6b8bb568cec52ca3599612b663ef3 (diff)
feat: add --cert flag for http client (#3972)
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r--cli/file_fetcher.rs6
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")
}