Commit d27ffe7c authored by Nick's avatar Nick

fix: override upload cache content-type

parent 212286fc
......@@ -111,6 +111,7 @@ module.exports = class Asset extends Model {
const cachePath = path.join(process.cwd(), `data/cache/${fileHash}.dat`)
return new Promise((resolve, reject) => {
res.type(path.extname(assetPath))
res.sendFile(cachePath, { dotfiles: 'deny' }, err => {
if (err) {
resolve(false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment