More MIME type shenanigans

This commit is contained in:
Jeremy Ruston
2012-11-18 15:25:40 +00:00
parent 84650b9a54
commit f07bc18204
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ Command.prototype.execute = function() {
} else {
var fields = {title: self.params[0]},
extname = path.extname(self.params[0]),
type = extname === ".html" ? "application/x-tiddlywiki" : extname;
type = extname === ".html" ? "application/vnd.tiddlywiki2" : extname;
var tiddlers = self.commander.wiki.deserializeTiddlers(type,data,fields);
if(!tiddlers) {
self.callback("No tiddlers found in file \"" + self.params[0] + "\"");