mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-09 08:42:08 +00:00
fix(security): always use application/octet-stream
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user