1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Fixed type mismatch (#3403)

This commit is contained in:
Andreas Hahn 2018-08-19 19:22:52 +02:00 committed by Jeremy Ruston
parent e72c72f04c
commit fe527b7eaf

View File

@ -38,7 +38,7 @@ exports.handler = function(request,response,state) {
} else {
status = 200;
content = content;
type = $tw.config.fileExtensionInfo[extension] || "application/octet-stream";
type = ($tw.config.fileExtensionInfo[extension] ? $tw.config.fileExtensionInfo[extension].type : "application/octet-stream");
}
response.writeHead(status,{
"Content-Type": type