mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
Add mimetype for xhtml.
This commit is contained in:
committed by
Tobias Hintze
parent
95aa7142cb
commit
b21cd3a95d
@@ -135,6 +135,8 @@ http.createServer(function (request, response) {
|
||||
head["Content-Type"] = "application/vnd.oasis.opendocument.spreadsheet";
|
||||
} else if (filename.substr(-4) === ".txt") {
|
||||
head["Content-Type"] = "text/plain; charset=utf-8";
|
||||
} else if (filename.substr(-6) === ".xhtml") {
|
||||
head["Content-Type"] = "application/xhtml+xml; charset=utf-8";
|
||||
}
|
||||
response.writeHead(200, head);
|
||||
if (request.method !== "HEAD") {
|
||||
|
||||
Reference in New Issue
Block a user