[Libreoffice-commits] online.git: wsd/FileServer.cpp
Henry Castro
hcastro at collabora.com
Thu Apr 13 02:10:15 UTC 2017
wsd/FileServer.cpp | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 1a580cc993bae2203c0c3ae905856debca2aa04b
Author: Henry Castro <hcastro at collabora.com>
Date: Wed Apr 12 22:11:23 2017 -0400
wsd: add mime type image/png
IE11 requires explicit content-type image/png
Change-Id: Ie0a886bc9b6af50be788456a93583176788c5315
diff --git a/wsd/FileServer.cpp b/wsd/FileServer.cpp
index 53583c6f..43216996 100644
--- a/wsd/FileServer.cpp
+++ b/wsd/FileServer.cpp
@@ -168,6 +168,8 @@ void FileServerRequestHandler::handleRequest(const HTTPRequest& request, Poco::M
mimeType = "text/css";
else if (fileType == "html")
mimeType = "text/html";
+ else if (fileType == "png")
+ mimeType = "image/png";
else if (fileType == "svg")
mimeType = "image/svg+xml";
else
More information about the Libreoffice-commits
mailing list