mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 09:08:32 +02:00
Use padding for Basic auth (#77)
This commit is contained in:
@@ -204,7 +204,7 @@ pub async fn send_http_request<R: Runtime>(
|
|||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|
||||||
let auth = format!("{username}:{password}");
|
let auth = format!("{username}:{password}");
|
||||||
let encoded = base64::engine::general_purpose::STANDARD_NO_PAD.encode(auth);
|
let encoded = base64::engine::general_purpose::STANDARD.encode(auth);
|
||||||
headers.insert(
|
headers.insert(
|
||||||
"Authorization",
|
"Authorization",
|
||||||
HeaderValue::from_str(&format!("Basic {}", encoded)).unwrap(),
|
HeaderValue::from_str(&format!("Basic {}", encoded)).unwrap(),
|
||||||
|
|||||||
Reference in New Issue
Block a user