Skip to content

Commit 74e213a

Browse files
committed
fix(security): always use application/octet-stream
1 parent f9d561d commit 74e213a

File tree

1 file changed

+1
-1
lines changed
  • packages/backend/src/routers

1 file changed

+1
-1
lines changed

packages/backend/src/routers/file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ router.get('/file', async (req, res, next)=>{
9696
res.resource_owner = fsentry[0].user_id;
9797

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

101101
// update `accessed`
102102
db.write(

0 commit comments

Comments
 (0)