From 8bdd766510fead16dfa3bdd437acd7a4367d919b Mon Sep 17 00:00:00 2001 From: Stefan van Herwijnen Date: Sun, 29 Dec 2024 13:47:24 +0100 Subject: [PATCH] fix(downloader): close page before returning --- packages/downloader/src/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/downloader/src/server.ts b/packages/downloader/src/server.ts index bb1da52..5e3b648 100644 --- a/packages/downloader/src/server.ts +++ b/packages/downloader/src/server.ts @@ -38,6 +38,8 @@ app.get( printBackground: true }) + await page.close() + reply.header( 'Content-Disposition', `attachment; filename=${await page.title()}`