Skip to content

Commit

Permalink
content disposition was missing from response
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoriqueMoe committed Jun 4, 2024
1 parent 404c9e2 commit 8a7baae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const opts: Partial<TsED.Configuration> = {
}),
cors({
origin: process.env.BASE_URL,
exposedHeaders: ["Location"],
exposedHeaders: ["Location", "Content-Disposition"],
}),
cookieParser(),
methodOverride(),
Expand Down
1 change: 1 addition & 0 deletions src/controllers/serve/FileServerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class FileServerController {
// unknown> just send an octet stream and let the client figure it out
res.contentType("application/octet-stream");
}
res.attachment(entry.fullFileNameOnSystem);
res.send(buff);
}

Expand Down

0 comments on commit 8a7baae

Please sign in to comment.