From b9a8111a00b58e355baf60a55893dbfc70b0dfdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 10 Aug 2021 13:19:45 +0200 Subject: refactor: --unsafely-ignore-certificate-errors (#11629) --- runtime/worker.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'runtime/worker.rs') diff --git a/runtime/worker.rs b/runtime/worker.rs index f8b0edb64..8057e38f1 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -50,7 +50,7 @@ pub struct WorkerOptions { pub args: Vec, pub debug_flag: bool, pub unstable: bool, - pub unsafely_treat_insecure_origin_as_secure: Option>, + pub unsafely_ignore_certificate_errors: Option>, pub root_cert_store: Option, pub user_agent: String, pub seed: Option, @@ -104,12 +104,12 @@ impl MainWorker { options.root_cert_store.clone(), None, None, - options.unsafely_treat_insecure_origin_as_secure.clone(), + options.unsafely_ignore_certificate_errors.clone(), ), deno_websocket::init::( options.user_agent.clone(), options.root_cert_store.clone(), - options.unsafely_treat_insecure_origin_as_secure.clone(), + options.unsafely_ignore_certificate_errors.clone(), ), deno_webstorage::init(options.origin_storage_dir.clone()), deno_crypto::init(options.seed), @@ -134,7 +134,7 @@ impl MainWorker { deno_net::init::( options.root_cert_store.clone(), options.unstable, - options.unsafely_treat_insecure_origin_as_secure.clone(), + options.unsafely_ignore_certificate_errors.clone(), ), ops::os::init(), ops::permissions::init(), @@ -304,7 +304,7 @@ mod tests { args: vec![], debug_flag: false, unstable: false, - unsafely_treat_insecure_origin_as_secure: None, + unsafely_ignore_certificate_errors: None, root_cert_store: None, seed: None, js_error_create_fn: None, -- cgit v1.2.3