Skip to content

Commit

Permalink
Update app/api/download/[file_name]/route.ts
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
nicnocquee and coderabbitai[bot] authored Nov 21, 2023
1 parent deca20e commit 6196e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/download/[file_name]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const GET = async (
return new Response(content, {
status: 200,
headers: {
"content-disposition": `attachment; filename=${decodedFileName}`
"content-disposition": `attachment; filename="${encodeURIComponent(decodedFileName)}"`
}
});
};

0 comments on commit 6196e3e

Please sign in to comment.