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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user