1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

allow session-only cookies (#161)

Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
Juan J. Jimenez-Anca
2021-03-06 19:26:06 +00:00
committed by GitHub
parent ba248a681b
commit 8d635f71fb
3 changed files with 38 additions and 3 deletions

View File

@ -115,7 +115,7 @@ impl IntoHeaderValue for Basic {
let encoded = base64::encode(&credentials);
let mut value = BytesMut::with_capacity(6 + encoded.len());
value.put(&b"Basic "[..]);
value.put(&encoded.as_bytes()[..]);
value.put(encoded.as_bytes());
HeaderValue::from_maybe_shared(value.freeze())
}