From ef7355bb7d146ba1c017ec6e98070f123bd4d3ed Mon Sep 17 00:00:00 2001 From: ogomez-at-wiris Date: Thu, 24 Feb 2022 15:21:57 +0100 Subject: [PATCH] feat: Send files to response --- src/pack_api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pack_api.ts b/src/pack_api.ts index eea29d6..15fd02b 100644 --- a/src/pack_api.ts +++ b/src/pack_api.ts @@ -37,7 +37,7 @@ export default class PackAPI { const streams = foundPack.files.map((file) => fs.createReadStream(file)); // Send the files to the client... - new multistream(streams).pipe(process.stdout); + new multistream(streams).pipe(res); console.log("files sent"); return res.status(200).json({ message: "ok",