From ca22eae5ac291f948299fb10bcdc505497ada8ba Mon Sep 17 00:00:00 2001 From: golem131 Date: Thu, 11 May 2017 11:36:01 +0300 Subject: [PATCH] feat(headers): update to base64 0.5 --- Cargo.toml | 2 +- src/header/common/authorization.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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)) } }