diff --git a/webodf/httpserver.js b/webodf/httpserver.js index 936761c1..e990b9d8 100644 --- a/webodf/httpserver.js +++ b/webodf/httpserver.js @@ -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") {