From 084caffc08ceb33c4d20c4b6d744ce15c19c4baf Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 1 Dec 2021 11:13:11 -0500 Subject: refactor: cli doesn't need to depend on deno_tls (#12952) also move create_http_client to deno_fetch --- cli/http_util.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cli/http_util.rs') diff --git a/cli/http_util.rs b/cli/http_util.rs index 1a2aaf0d5..c66fa32d3 100644 --- a/cli/http_util.rs +++ b/cli/http_util.rs @@ -148,7 +148,8 @@ pub async fn fetch_once( mod tests { use super::*; use crate::version; - use deno_tls::create_http_client; + use deno_runtime::deno_fetch::create_http_client; + use deno_runtime::deno_tls::rustls::RootCertStore; use std::fs::read; fn create_test_client() -> Client { @@ -413,7 +414,7 @@ mod tests { let url = Url::parse("https://deno.land").unwrap(); let client = create_http_client( version::get_user_agent(), - Some(deno_tls::rustls::RootCertStore::empty()), // no certs loaded at all + Some(RootCertStore::empty()), // no certs loaded at all vec![], None, None, -- cgit v1.2.3