diff --git a/src/pages/api/download-application.ts b/src/pages/api/download-application.ts index 581c2859..1a73d389 100644 --- a/src/pages/api/download-application.ts +++ b/src/pages/api/download-application.ts @@ -4,7 +4,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) const response = await fetch(process.env.PROJECT_GRANTS_DOWNLOAD_FILE_URL!); if (!response.ok) throw new Error(`unexpected response ${response.statusText}`); - res.setHeader('Content-Type', 'application/msword'); - res.setHeader('Content-Disposition', 'attachment; filename=projectGrantsApplication.doc'); + res.setHeader( + 'Content-Type', + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' + ); + res.setHeader('Content-Disposition', 'attachment; filename=projectGrantsApplication.docx'); res.send(response.body); }