You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the process of upgrading xh to reqwest 0.12, I found two places that are incompatible with 0.11.x.
I wonder if this is a problem or a feature?
works ok at 0.11.x and raise a error at 0.12.1
reqwest = { version = "~0.12.1", features = ["rustls-tls","native-tls","native-tls-alpn"]}
tokio = { version = "1.36.0", features = ["full"]}
hyper = { version = "1.2.0", features = ["server"]}
hyper-util = { version = "0.1.3", features = ["server"]}
http-body-util = "0.1.1"
#[tokio::main]
async fn main(){let url = "https://github.com/";let resp = reqwest::Client::builder().use_native_tls().build().unwrap().get(url).send().await.unwrap();println!("{:?}", resp.status());// it works ok at 0.11.x// raise a error at 0.12.1}
raise a error at 0.11.x and works at 0.12.1
reqwest = { version = "~0.12.1", features = ["rustls-tls","native-tls","native-tls-alpn"]}
tokio = { version = "1.36.0", features = ["full"]}
hyper = { version = "1.2.0", features = ["server"]}
hyper-util = { version = "0.1.3", features = ["server"]}
http-body-util = "0.1.1"
use reqwest::tls::Version;#[tokio::main]asyncfnmain(){let url = "https://tls-v1-2.badssl.com:1012/";let resp = reqwest::Client::builder().use_rustls_tls().max_tls_version(Version::TLS_1_3).min_tls_version(Version::TLS_1_3).build().unwrap().get(url).send().await.unwrap();println!("{:?}", resp.status());}
The text was updated successfully, but these errors were encountered:
During the process of upgrading xh to reqwest 0.12, I found two places that are incompatible with 0.11.x.
I wonder if this is a problem or a feature?
works ok at 0.11.x and raise a error at 0.12.1
raise a error at 0.11.x and works at 0.12.1
The text was updated successfully, but these errors were encountered: