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:
committed by
GitHub
parent
ba248a681b
commit
8d635f71fb
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user