summaryrefslogtreecommitdiff
path: root/cli/http_util.rs
diff options
context:
space:
mode:
authorTheAifam5 <theaifam5@gmail.com>2021-08-09 16:53:21 +0200
committerGitHub <noreply@github.com>2021-08-09 16:53:21 +0200
commit353a4a1af3165b2c59319865350d70a99105269c (patch)
tree32eb71ccef95552bd4ec4af176b7ddcfe51d172c /cli/http_util.rs
parent3ab50b355141f744a0acec1a5cc3b3b95247d4b1 (diff)
feat: Add --unsafely-treat-insecure-origin-as-secure flag to disable SSL verification (#11324)
This commit adds "--unsafely-treat-insecure-origin-as-secure" flag that allows to disable SSL verification for all domains, or specific domains if they were passed as an argument to the flag. Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/http_util.rs')
-rw-r--r--cli/http_util.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/cli/http_util.rs b/cli/http_util.rs
index 671093923..ac8e1dff6 100644
--- a/cli/http_util.rs
+++ b/cli/http_util.rs
@@ -145,7 +145,8 @@ mod tests {
use std::fs::read;
fn create_test_client(ca_data: Option<Vec<u8>>) -> Client {
- create_http_client("test_client".to_string(), None, ca_data, None).unwrap()
+ create_http_client("test_client".to_string(), None, ca_data, None, None)
+ .unwrap()
}
#[tokio::test]
@@ -347,6 +348,7 @@ mod tests {
.unwrap(),
),
None,
+ None,
)
.unwrap();
let result = fetch_once(FetchOnceArgs {
@@ -376,6 +378,7 @@ mod tests {
None, // This will load mozilla certs by default
None,
None,
+ None,
)
.unwrap();
@@ -407,6 +410,7 @@ mod tests {
Some(RootCertStore::empty()), // no certs loaded at all
None,
None,
+ None,
)
.unwrap();
@@ -445,6 +449,7 @@ mod tests {
.unwrap(),
),
None,
+ None,
)
.unwrap();
let result = fetch_once(FetchOnceArgs {
@@ -484,6 +489,7 @@ mod tests {
.unwrap(),
),
None,
+ None,
)
.unwrap();
let result = fetch_once(FetchOnceArgs {
@@ -537,6 +543,7 @@ mod tests {
.unwrap(),
),
None,
+ None,
)
.unwrap();
let result = fetch_once(FetchOnceArgs {