Skip to content

Commit

Permalink
fix(downloader): close page before returning
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanherwijnen committed Dec 29, 2024
1 parent 0ab0f69 commit 8bdd766
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/downloader/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ app.get(
printBackground: true
})

await page.close()

reply.header(
'Content-Disposition',
`attachment; filename=${await page.title()}`
Expand Down

0 comments on commit 8bdd766

Please sign in to comment.