summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-08-10 13:19:45 +0200
committerGitHub <noreply@github.com>2021-08-10 13:19:45 +0200
commitb9a8111a00b58e355baf60a55893dbfc70b0dfdd (patch)
tree99f88f95143ddeaa11f77dd80dccacb03f6d5270 /runtime
parent465cf9a6fe2d77f4c3cdaeb8eea60bd2b8697608 (diff)
refactor: --unsafely-ignore-certificate-errors (#11629)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/examples/hello_runtime.rs2
-rw-r--r--runtime/web_worker.rs8
-rw-r--r--runtime/worker.rs10
3 files changed, 10 insertions, 10 deletions
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<String>,
pub debug_flag: bool,
pub unstable: bool,
- pub unsafely_treat_insecure_origin_as_secure: Option<Vec<String>>,
+ pub unsafely_ignore_certificate_errors: Option<Vec<String>>,
pub root_cert_store: Option<RootCertStore>,
pub user_agent: String,
pub seed: Option<u64>,
@@ -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::<Permissions>(
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::<Permissions>(
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<String>,
pub debug_flag: bool,
pub unstable: bool,
- pub unsafely_treat_insecure_origin_as_secure: Option<Vec<String>>,
+ pub unsafely_ignore_certificate_errors: Option<Vec<String>>,
pub root_cert_store: Option<RootCertStore>,
pub user_agent: String,
pub seed: Option<u64>,
@@ -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::<Permissions>(
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::<Permissions>(
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,