Skip to content

Commit

Permalink
No response end when piping (#52)
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Indik <[email protected]>
  • Loading branch information
gabriel-indik committed Feb 1, 2022
1 parent 9e6abbe commit 2e82ebc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/routers/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ router.get('/blobs/*', async (req: Request, res, next) => {
res.setHeader(utils.constants.SIZE_HEADER_NAME, metadata.size);
res.setHeader(utils.constants.LAST_UPDATE_HEADER_NAME, metadata.lastUpdate);
const blobStream = await blobsHandler.retreiveBlob(blobPath);
blobStream.on('end', () => res.end());
blobStream.pipe(res);
} catch (err) {
next(err);
Expand Down

0 comments on commit 2e82ebc

Please sign in to comment.