Skip to content

Commit

Permalink
fix: escape filename
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed Feb 28, 2024
1 parent 9547744 commit 1ac8df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/Transport/Response/DownloadResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class DownloadResponse extends ResponseAbstract<Readable> {
function createHeaders(options: DownloadOptions): Record<string, string> {
const size = options.size;
const headers: Record<string, string> = {
"Content-Disposition": `attachment; filename=${encodeURI(options.filename)}`,
"Content-Disposition": `attachment; filename="${encodeURI(options.filename)}"`,
"Content-Length": size.toString(),
"Content-Type": options.mimeType,
};
Expand Down

0 comments on commit 1ac8df2

Please sign in to comment.