refactor: Use cURL's own basic auth implementation

Drops the dependency on the base64-crate, which it turns out isn't
necessary as cURL has this built-in.
This commit is contained in:
Vincent Ambo 2019-02-26 17:54:11 +01:00
parent de86cc551a
commit acc7e64a0d
3 changed files with 15 additions and 21 deletions

View file

@ -101,7 +101,7 @@ fn test_bearer_auth() {
assert!(response.is_success(), "authorized request should succeed");
}
#[cfg(feature = "basic_auth")] #[test]
#[test]
fn test_basic_auth() {
let request = Request::new(
Method::Get, "https://httpbin.org/basic-auth/alan_watts/oneness"