Use padding for Basic auth (#77)

This commit is contained in:
Michal Polko authored and GitHub committed 2024-09-11 22:26:03 -07:00
1 parent ed48e1d52a
commit 65b7db873e
1 file changed
+1 -1
+1 -1
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(),