mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-28 16:23:15 +00:00
Fixed type mismatch (#3403)
This commit is contained in:
parent
e72c72f04c
commit
fe527b7eaf
|
@ -38,7 +38,7 @@ exports.handler = function(request,response,state) {
|
||||||
} else {
|
} else {
|
||||||
status = 200;
|
status = 200;
|
||||||
content = content;
|
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,{
|
response.writeHead(status,{
|
||||||
"Content-Type": type
|
"Content-Type": type
|
||||||
|
|
Loading…
Reference in New Issue
Block a user