From fe527b7eaf0810e5a0c770340c8ffb19488c9a19 Mon Sep 17 00:00:00 2001 From: Andreas Hahn Date: Sun, 19 Aug 2018 19:22:52 +0200 Subject: [PATCH] Fixed type mismatch (#3403) --- core/modules/server/routes/get-file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/server/routes/get-file.js b/core/modules/server/routes/get-file.js index 5bc4e09e1..3429c4cd2 100644 --- a/core/modules/server/routes/get-file.js +++ b/core/modules/server/routes/get-file.js @@ -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