mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-06 04:00:02 +00:00
Fix https only mode: It should not be http2 only
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
b03ec6fb93
commit
9b62ebdae1
1 changed files with 1 additions and 3 deletions
|
@ -51,9 +51,7 @@ pub fn new_reqwest_client_builder() -> ClientBuilder {
|
||||||
let mut builder = ClientBuilder::new();
|
let mut builder = ClientBuilder::new();
|
||||||
|
|
||||||
if let Some((https_only, min_tls_ver_opt)) = REQWESTGLOBALCONFIG.get() {
|
if let Some((https_only, min_tls_ver_opt)) = REQWESTGLOBALCONFIG.get() {
|
||||||
if *https_only {
|
builder = builder.https_only(*https_only);
|
||||||
builder = builder.http2_prior_knowledge();
|
|
||||||
}
|
|
||||||
|
|
||||||
if let Some(min_tls_ver) = *min_tls_ver_opt {
|
if let Some(min_tls_ver) = *min_tls_ver_opt {
|
||||||
builder = builder.min_tls_version(min_tls_ver.into());
|
builder = builder.min_tls_version(min_tls_ver.into());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue