mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-26 11:43:08 +03:00
Merge pull request #50 from Orange-OpenSource/fix/option-insecure
[FIX] inverse insecure flag
This commit is contained in:
commit
9f9e5ee351
@ -368,7 +368,7 @@ fn app() -> clap::App<'static, 'static> {
|
|||||||
clap::Arg::with_name("insecure")
|
clap::Arg::with_name("insecure")
|
||||||
.short("k")
|
.short("k")
|
||||||
.long("insecure")
|
.long("insecure")
|
||||||
.help("Allow insecure SSl connections"),
|
.help("Allow insecure SSL connections"),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
clap::Arg::with_name("json")
|
clap::Arg::with_name("json")
|
||||||
|
@ -144,7 +144,7 @@ impl Error for runner::Error {
|
|||||||
RunnerError::Timeout => "Timeout has been reached".to_string(),
|
RunnerError::Timeout => "Timeout has been reached".to_string(),
|
||||||
RunnerError::TooManyRedirect => "Too many redirect".to_string(),
|
RunnerError::TooManyRedirect => "Too many redirect".to_string(),
|
||||||
RunnerError::CouldNotParseResponse => "Could not parse response".to_string(),
|
RunnerError::CouldNotParseResponse => "Could not parse response".to_string(),
|
||||||
RunnerError::SSLCertificate => "SSl Certificate".to_string(),
|
RunnerError::SSLCertificate => "SSL certificate problem".to_string(),
|
||||||
RunnerError::AssertVersion { actual, .. } => format!("actual value is <{}>", actual),
|
RunnerError::AssertVersion { actual, .. } => format!("actual value is <{}>", actual),
|
||||||
RunnerError::AssertStatus { actual, .. } => format!("actual value is <{}>", actual),
|
RunnerError::AssertStatus { actual, .. } => format!("actual value is <{}>", actual),
|
||||||
RunnerError::PredicateValue(value) => {
|
RunnerError::PredicateValue(value) => {
|
||||||
|
@ -94,8 +94,8 @@ impl Client {
|
|||||||
h.noproxy(s.as_str()).unwrap();
|
h.noproxy(s.as_str()).unwrap();
|
||||||
}
|
}
|
||||||
h.verbose(options.verbose).unwrap();
|
h.verbose(options.verbose).unwrap();
|
||||||
h.ssl_verify_host(options.insecure).unwrap();
|
h.ssl_verify_host(!options.insecure).unwrap();
|
||||||
h.ssl_verify_peer(options.insecure).unwrap();
|
h.ssl_verify_peer(!options.insecure).unwrap();
|
||||||
|
|
||||||
h.timeout(options.timeout).unwrap();
|
h.timeout(options.timeout).unwrap();
|
||||||
h.connect_timeout(options.connect_timeout).unwrap();
|
h.connect_timeout(options.connect_timeout).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user