mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
refactor: cli doesn't need to depend on deno_tls (#12952)
also move create_http_client to deno_fetch
This commit is contained in:
parent
4c36fa1fdf
commit
084caffc08
10 changed files with 67 additions and 67 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue