summaryrefslogtreecommitdiff
path: root/cli/http_util.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-12-01 11:13:11 -0500
committerGitHub <noreply@github.com>2021-12-01 11:13:11 -0500
commit084caffc08ceb33c4d20c4b6d744ce15c19c4baf (patch)
treebc7a2aa6b6bb55c2383912b6f8a542e648488fdc /cli/http_util.rs
parent4c36fa1fdf6c353fb01f2ec80da39a52e969fb5f (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.rs5
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,