diff options
author | geoFlux <blakejason5@gmail.com> | 2020-02-17 11:59:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 11:59:51 -0500 |
commit | 2e7d449623b7faee8feb0a2970e0d6bb7c66b409 (patch) | |
tree | 4b3cae1d91709391fcc8facc2d2dca409349f026 /cli/ops/fetch.rs | |
parent | 98e585a284f6b8bb568cec52ca3599612b663ef3 (diff) |
feat: add --cert flag for http client (#3972)
Diffstat (limited to 'cli/ops/fetch.rs')
-rw-r--r-- | cli/ops/fetch.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/ops/fetch.rs b/cli/ops/fetch.rs index f43133d7f..580fd993a 100644 --- a/cli/ops/fetch.rs +++ b/cli/ops/fetch.rs @@ -31,7 +31,8 @@ pub fn op_fetch( let args: FetchArgs = serde_json::from_value(args)?; let url = args.url; - let client = create_http_client(); + let client = + create_http_client(state.borrow().global_state.flags.ca_file.clone())?; let method = match args.method { Some(method_str) => Method::from_bytes(method_str.as_bytes())?, |