diff --git a/Cargo.toml b/Cargo.toml index f8bae8ce..80cd4bed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ include = [ ] [dependencies] -base64 = "0.4" +base64 = "0.5" bytes = "0.4" futures = "0.1.11" futures-cpupool = "0.1" diff --git a/src/header/common/authorization.rs b/src/header/common/authorization.rs index 7568e317..e3bd6261 100644 --- a/src/header/common/authorization.rs +++ b/src/header/common/authorization.rs @@ -158,7 +158,8 @@ impl Scheme for Basic { if let Some(ref pass) = self.password { text.push_str(&pass[..]); } - f.write_str(&encode(text.as_ref())) + + f.write_str(&encode(&text)) } }