Skip to content

Commit

Permalink
Merge pull request #11 from redbaron-gt/patch-1
Browse files Browse the repository at this point in the history
Don't automatically add .pdf extension
  • Loading branch information
ccjmne authored May 22, 2024
2 parents 25d2877 + 1e3371e commit c9460e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function use(puppeteer) {
const { filename, options } = parseRequest(request);
const res = await print({ htmlContents: request.body, browser, options });
await browser.close();
response.attachment(`${filename}.pdf`).send(res);
response.attachment(`${filename}`).send(res);
});

app.post('/multiple', cors(), async (request, response) => {
Expand Down

0 comments on commit c9460e6

Please sign in to comment.