wow base64 w/ and wo/ padding are incompatible

This commit is contained in:
Mikaël Cluseau
2026-01-25 21:59:23 +01:00
parent 6a6536bdfb
commit e8c9ee9885

View File

@ -16,7 +16,7 @@ pub async fn files(files: &[crate::File], root: &str) -> Result<()> {
match &file.kind {
K::Content(content) => fs::write(path, content.as_bytes()).await?,
K::Content64(content) => {
use base64::prelude::{Engine as _, BASE64_STANDARD as B64};
use base64::prelude::{Engine as _, BASE64_STANDARD_NO_PAD as B64};
let content = B64.decode(content)?;
fs::write(path, content).await?
}