Skip to content

Commit de0f458

Browse files
committed
Fix getImageMimeType mime usage
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
1 parent c9e2398 commit de0f458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports.isSQLite = function isSQLite (sequelize) {
99
}
1010

1111
exports.getImageMimeType = function getImageMimeType (imagePath) {
12-
return mime.contentType(path.extname(imagePath))
12+
return mime.lookup(path.extname(imagePath))
1313
}
1414

1515
exports.isRevealTheme = function isRevealTheme (theme) {

0 commit comments

Comments
 (0)