minetype: Add sag support

master
Jonatan Nilsson 2019-12-18 21:29:04 +00:00
parent ea8acbef1a
commit 969ffa59f3
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@ module.exports = function getMimetype(type, includeCharset) {
return 'application/javascript' + charset;
} else if (type.indexOf('png') >= 0) {
return 'image/png';
} else if (type.indexOf('svg') >= 0) {
return 'image/svg+xml';
} else if (type.indexOf('jpg') >= 0) {
return 'image/jpeg';
} else if (type.indexOf('jpeg') >= 0) {

View File

@ -23,7 +23,7 @@
"license": "MIT",
"dependencies": {
"content-disposition": "jharrilim/content-disposition#572383f",
"debug-ms": "~4.1.2",
"debug": "~4.1.2",
"fresh": "~0.5.2",
"http-errors-lite": "^2.0.2"
},