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/examples/hello_runtime.rs | 2 +- runtime/web_worker.rs | 8 ++++---- runtime/worker.rs | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'runtime') diff --git a/runtime/examples/hello_runtime.rs b/runtime/examples/hello_runtime.rs index e3a8b88b2..776dc23c3 100644 --- a/runtime/examples/hello_runtime.rs +++ b/runtime/examples/hello_runtime.rs @@ -27,7 +27,7 @@ async fn main() -> Result<(), AnyError> { args: vec![], debug_flag: false, unstable: false, - unsafely_treat_insecure_origin_as_secure: None, + unsafely_ignore_certificate_errors: None, root_cert_store: None, user_agent: "hello_runtime".to_string(), seed: None, diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index 1349c510a..495fedb81 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -253,7 +253,7 @@ pub struct WebWorkerOptions { 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, @@ -305,12 +305,12 @@ impl WebWorker { 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_broadcast_channel::init( options.broadcast_channel.clone(), @@ -344,7 +344,7 @@ impl WebWorker { 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(), 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