Fix https only mode: It should not be http2 only

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-22 19:28:34 +10:00
parent b03ec6fb93
commit 9b62ebdae1
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -51,9 +51,7 @@ pub fn new_reqwest_client_builder() -> ClientBuilder {
let mut builder = ClientBuilder::new();
if let Some((https_only, min_tls_ver_opt)) = REQWESTGLOBALCONFIG.get() {
if *https_only {
builder = builder.http2_prior_knowledge();
}
builder = builder.https_only(*https_only);
if let Some(min_tls_ver) = *min_tls_ver_opt {
builder = builder.min_tls_version(min_tls_ver.into());