diff --git a/src/tools/pathTools.cpp b/src/tools/pathTools.cpp index 31862fef4..54f513b0a 100644 --- a/src/tools/pathTools.cpp +++ b/src/tools/pathTools.cpp @@ -493,12 +493,14 @@ static std::map extMimeTypes = { { "jpeg", "image/jpeg"}, { "jpg", "image/jpeg"}, { "gif", "image/gif"}, + { "ico", "image/x-icon"}, { "svg", "image/svg+xml"}, { "txt", "text/plain"}, { "xml", "text/xml"}, { "pdf", "application/pdf"}, { "ogg", "application/ogg"}, { "js", "application/javascript"}, + { "json", "application/json"}, { "css", "text/css"}, { "otf", "application/vnd.ms-opentype"}, { "ttf", "application/font-ttf"}, diff --git a/test/server.cpp b/test/server.cpp index 163003675..9fdd2ff7c 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -58,8 +58,6 @@ const ResourceCollection resources200Compressible{ { STATIC_CONTENT, "/ROOT%23%3F/skin/autoComplete.min.js?cacheid=1191aaaf" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/css/autoComplete.css" }, { STATIC_CONTENT, "/ROOT%23%3F/skin/css/autoComplete.css?cacheid=08951e06" }, - { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/favicon/favicon.ico" }, - { STATIC_CONTENT, "/ROOT%23%3F/skin/favicon/favicon.ico?cacheid=fba03a27" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/i18n.js" }, { STATIC_CONTENT, "/ROOT%23%3F/skin/i18n.js?cacheid=6da2bca0" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.css" }, @@ -119,6 +117,8 @@ const ResourceCollection resources200Uncompressible{ { STATIC_CONTENT, "/ROOT%23%3F/skin/favicon/favicon-16x16.png?cacheid=a986fedc" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/favicon/favicon-32x32.png" }, { STATIC_CONTENT, "/ROOT%23%3F/skin/favicon/favicon-32x32.png?cacheid=79ded625" }, + { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/favicon/favicon.ico" }, + { STATIC_CONTENT, "/ROOT%23%3F/skin/favicon/favicon.ico?cacheid=fba03a27" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/favicon/mstile-144x144.png" }, { STATIC_CONTENT, "/ROOT%23%3F/skin/favicon/mstile-144x144.png?cacheid=c25a7641" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/favicon/mstile-150x150.png" }, @@ -487,8 +487,8 @@ TEST_F(ServerTest, MimeTypes) { "/catalog/v2/root.xml", "application/atom+xml;profile=opds-catalog;kind=navigation" }, { "/skin/search-icon.svg", "image/svg+xml" }, { "/skin/bittorrent.png", "image/png" }, - { "/skin/favicon/favicon.ico", "text/plain" }, // !!! - { "/skin/i18n/en.json", "text/plain" }, // !!! + { "/skin/favicon/favicon.ico", "image/x-icon" }, + { "/skin/i18n/en.json", "application/json" }, { "/skin/fonts/Roboto.ttf", "application/font-ttf" }, { "/suggest?content=zimfile&term=ray", "application/json; charset=utf-8" }, };