refactor: --unsafely-ignore-certificate-errors (#11629)

This commit is contained in:
Bartek Iwańczuk 2021-08-10 13:19:45 +02:00 committed by GitHub
parent 465cf9a6fe
commit b9a8111a00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 78 additions and 79 deletions

View file

@ -223,7 +223,7 @@ impl FileFetcher {
allow_remote: bool,
root_cert_store: Option<RootCertStore>,
blob_store: BlobStore,
unsafely_treat_insecure_origin_as_secure: Option<Vec<String>>,
unsafely_ignore_certificate_errors: Option<Vec<String>>,
) -> Result<Self, AnyError> {
Ok(Self {
auth_tokens: AuthTokens::new(env::var(DENO_AUTH_TOKENS).ok()),
@ -236,7 +236,7 @@ impl FileFetcher {
root_cert_store,
None,
None,
unsafely_treat_insecure_origin_as_secure,
unsafely_ignore_certificate_errors,
)?,
blob_store,
})