Update base64 to 0.20
This commit is contained in:
@@ -253,7 +253,7 @@ impl RequestBuilder {
|
||||
{
|
||||
let mut header_value = b"Basic ".to_vec();
|
||||
{
|
||||
let mut encoder = Base64Encoder::new(&mut header_value, base64::STANDARD);
|
||||
let mut encoder = Base64Encoder::from(&mut header_value, &base64::engine::DEFAULT_ENGINE);
|
||||
// The unwraps here are fine because Vec::write* is infallible.
|
||||
write!(encoder, "{}:", username).unwrap();
|
||||
if let Some(password) = password {
|
||||
|
||||
Reference in New Issue
Block a user