Use padding for Basic auth (#77)

This commit is contained in:
Michal Polko
2024-09-12 07:26:03 +02:00
committed by GitHub
parent ed48e1d52a
commit 65b7db873e

View File

@@ -204,7 +204,7 @@ pub async fn send_http_request<R: Runtime>(
.unwrap_or_default();
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(
"Authorization",
HeaderValue::from_str(&format!("Basic {}", encoded)).unwrap(),