From 2e7d449623b7faee8feb0a2970e0d6bb7c66b409 Mon Sep 17 00:00:00 2001 From: geoFlux Date: Mon, 17 Feb 2020 11:59:51 -0500 Subject: feat: add --cert flag for http client (#3972) --- cli/ops/fetch.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/ops') 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())?, -- cgit v1.2.3