Skip to content

Commit

Permalink
fix(security): always use application/octet-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Apr 23, 2024
1 parent f9d561d commit 74e213a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/routers/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ router.get('/file', async (req, res, next)=>{
res.resource_owner = fsentry[0].user_id;

// try to deduce content-type
const contentType = mime.contentType(fsentry[0].name)
const contentType = "application/octet-stream";

// update `accessed`
db.write(
Expand Down

0 comments on commit 74e213a

Please sign in to comment.