Commit 3a4f5d46 authored by nanahira's avatar nanahira

fix chinese name

parent 6e516f49
Pipeline #3417 passed with stages
in 5 minutes and 25 seconds
......@@ -80,7 +80,9 @@ export class AppController {
const pdf = await this.appService.getPdf(userData);
res.set({
'Content-Type': 'application/pdf',
'Content-Disposition': `attachment; filename=${userData.id}-${userData.name}.pdf`,
'Content-Disposition': encodeURIComponent(
`attachment; filename=${userData.id}-${userData.name}.pdf`,
),
'Content-Length': pdf.length,
// prevent cache
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment