diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-12-01 11:13:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 11:13:11 -0500 |
commit | 084caffc08ceb33c4d20c4b6d744ce15c19c4baf (patch) | |
tree | bc7a2aa6b6bb55c2383912b6f8a542e648488fdc /cli/http_util.rs | |
parent | 4c36fa1fdf6c353fb01f2ec80da39a52e969fb5f (diff) |
refactor: cli doesn't need to depend on deno_tls (#12952)
also move create_http_client to deno_fetch
Diffstat (limited to 'cli/http_util.rs')
-rw-r--r-- | cli/http_util.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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, |