[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - wsd/FileServer.cpp

Henry Castro hcastro at collabora.com
Thu Apr 13 11:22:22 UTC 2017


 wsd/FileServer.cpp |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c5b63ae06672b1345a0efc7d262bc8d528ff91da
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
    Reviewed-on: https://gerrit.libreoffice.org/36513
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

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


More information about the Libreoffice-commits mailing list