wsd/FileServer.cpp | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit c5b63ae06672b1345a0efc7d262bc8d528ff91da
Author: Henry Castro <[email protected]>
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
Reviewed-on: https://gerrit.libreoffice.org/36513
Reviewed-by: Jan Holesovsky <[email protected]>
Tested-by: Jan Holesovsky <[email protected]>
diff --git a/wsd/FileServer.cpp b/wsd/FileServer.cpp
index ca742309..e69d8df6 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
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits