wow base64 w/ and wo/ padding are incompatible
This commit is contained in:
@ -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?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user