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
I'm getting a panic in redirect::remove_sensitive_headers when I make a request to http://google.com with an Authorization header set using a Basic struct on reqwest 0.7.1.
Code:
externcrate reqwest;fnmain(){letmut headers = reqwest::header::Headers::new();// headers.set(reqwest::header::Authorization("letmein".to_owned())); // this is okay
headers.set(reqwest::header::Authorization(reqwest::header::Basic{username:"username".to_string(),password:Some("password".to_string()),}));
reqwest::Client::new().expect("failed to make client").get("http://google.com")// redirects.expect("failed to add get").headers(headers).send().expect("failed to send");}
I'm getting a panic in
redirect::remove_sensitive_headers
when I make a request tohttp://google.com
with an Authorization header set using aBasic
struct on reqwest 0.7.1.Code:
Backtrace:
The text was updated successfully, but these errors were encountered: