mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
fix(security): always use application/octet-stream
This commit is contained in:
parent
f9d561d40b
commit
74e213a534
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user