Skip to content

Commit

Permalink
fix: use correct fallback for mime-types in cachedRead
Browse files Browse the repository at this point in the history
fix #409
  • Loading branch information
yyx990803 committed Jun 18, 2020
1 parent fe9b04e commit 6047305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/utils/fsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function cachedRead(
const cached = fsReadCache.get(file)
if (ctx) {
ctx.set('Cache-Control', 'no-cache')
ctx.type = mime.lookup(path.extname(file)) || 'js'
ctx.type = mime.lookup(path.extname(file)) || 'application/octet-stream'
}
if (cached && cached.lastModified === lastModified) {
if (ctx) {
Expand Down

0 comments on commit 6047305

Please sign in to comment.