mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
🎨
This commit is contained in:
@ -31,11 +31,11 @@ async function getHandler(req: NextApiRequest, res: NextApiResponse) {
|
||||
|
||||
const buffer: Buffer = Buffer.from(signedDocumentAsBase64, "base64");
|
||||
res.setHeader("Content-Type", "application/pdf");
|
||||
res.setHeader("Content-Length", buffer.length);
|
||||
res.setHeader(
|
||||
"Content-Disposition",
|
||||
`attachment; filename=${document.title}`
|
||||
);
|
||||
res.setHeader("Content-Length", buffer.length);
|
||||
|
||||
res.status(200).send(buffer);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user