1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

Update base64 to 0.21 (#2966)

Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
citreae535
2023-01-21 09:36:08 +08:00
committed by GitHub
parent 2f0b8a264a
commit b00fe72cf6
8 changed files with 18 additions and 9 deletions

View File

@ -13,6 +13,7 @@ use std::{
};
use actix_utils::future::ok;
use base64::prelude::*;
use bytes::Bytes;
use cookie::Cookie;
use futures_util::stream;
@ -783,7 +784,7 @@ async fn client_basic_auth() {
.unwrap()
.to_str()
.unwrap()
== format!("Basic {}", base64::encode("username:password"))
== format!("Basic {}", BASE64_STANDARD.encode("username:password"))
{
HttpResponse::Ok()
} else {