Add mimetype for xhtml.

This commit is contained in:
Jos van den Oever
2012-12-28 11:59:35 +01:00
committed by Tobias Hintze
parent 95aa7142cb
commit b21cd3a95d
+2
View File
@@ -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") {