mirror of
https://github.com/webodf/WebODF.git
synced 2026-12-01 16:56:05 +01:00
Fix mimetypes for .ods & .odp files in nodejs httpserver
This commit is contained in:
@@ -117,11 +117,11 @@ http.createServer(function (request, response) {
|
||||
} else if (filename.substr(-4) === ".odt" ||
|
||||
filename.substr(-5) === ".fodt") {
|
||||
head["Content-Type"] = "application/vnd.oasis.opendocument.text";
|
||||
} else if (filename.substr(-4) === ".ods" ||
|
||||
filename.substr(-5) === ".fods") {
|
||||
head["Content-Type"] = "application/vnd.oasis.opendocument.presentation";
|
||||
} else if (filename.substr(-4) === ".odp" ||
|
||||
filename.substr(-5) === ".fodp") {
|
||||
head["Content-Type"] = "application/vnd.oasis.opendocument.presentation";
|
||||
} else if (filename.substr(-4) === ".ods" ||
|
||||
filename.substr(-5) === ".fods") {
|
||||
head["Content-Type"] = "application/vnd.oasis.opendocument.spreadsheet";
|
||||
} else if (filename.substr(-4) === ".txt") {
|
||||
head["Content-Type"] = "text/plain; charset=utf-8";
|
||||
|
||||
Reference in New Issue
Block a user