From c17b68c45fc47dcdad798464c13a136655ab8e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B3pez=20Guimaraes?= Date: Tue, 11 Nov 2025 13:06:11 +0000 Subject: [PATCH] fix(cli): Allow download of files with no payload content --- src/cli/files-3ds.cmd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/files-3ds.cmd.ts b/src/cli/files-3ds.cmd.ts index 2d9e8bb..efcb52b 100644 --- a/src/cli/files-3ds.cmd.ts +++ b/src/cli/files-3ds.cmd.ts @@ -117,7 +117,7 @@ const downloadCmd = new Command('download') const keys = ctx.get3DSKeys(); const decrypted = decrypt3DS(buffer, keys.aesKey); // TODO - Handle multiple payloads - buffer = decrypted.payload_contents[0].content; + buffer = decrypted.payload_contents[0]?.content ?? Buffer.alloc(0); } await pipeline(Readable.from(buffer), process.stdout);