From 445ca1958d914889e5cb05e69c0ae9d09f2b99db Mon Sep 17 00:00:00 2001 From: xynydev Date: Mon, 18 Dec 2023 19:11:48 +0200 Subject: [PATCH] fix: ensure pubkey ends in newline --- src/components/ImageChooser/Cosign.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ImageChooser/Cosign.svelte b/src/components/ImageChooser/Cosign.svelte index 83b5c2e..7fd4cf3 100644 --- a/src/components/ImageChooser/Cosign.svelte +++ b/src/components/ImageChooser/Cosign.svelte @@ -99,7 +99,7 @@ headers: { Authorization: `Bearer ${$customImage.auth}` }, body: JSON.stringify({ message: "chore(automatic): new cosign keys", - content: btoa(publicKey), + content: btoa(publicKey.trimEnd()+'\n'), sha: publicKeyJson.sha, }), }