diff --git a/src/base/http/types.h b/src/base/http/types.h index 488edf9e3..9c8ea535e 100644 --- a/src/base/http/types.h +++ b/src/base/http/types.h @@ -59,6 +59,7 @@ namespace Http const char CONTENT_TYPE_JSON[] = "application/json"; const char CONTENT_TYPE_PNG[] = "image/png"; const char CONTENT_TYPE_TXT[] = "text/plain; charset=UTF-8"; + const char CONTENT_TYPE_SVG[] = "image/svg+xml"; // portability: "\r\n" doesn't guarantee mapping to the correct value const char CRLF[] = {0x0D, 0x0A, '\0'}; diff --git a/src/webui/abstractwebapplication.cpp b/src/webui/abstractwebapplication.cpp index 1f8f3a3e6..d417b8ac1 100644 --- a/src/webui/abstractwebapplication.cpp +++ b/src/webui/abstractwebapplication.cpp @@ -490,7 +490,8 @@ const QStringMap AbstractWebApplication::CONTENT_TYPE_BY_EXT = { { "css", Http::CONTENT_TYPE_CSS }, { "gif", Http::CONTENT_TYPE_GIF }, { "png", Http::CONTENT_TYPE_PNG }, - { "js", Http::CONTENT_TYPE_JS } + { "js", Http::CONTENT_TYPE_JS }, + { "svg", Http::CONTENT_TYPE_SVG } }; QStringMap AbstractWebApplication::parseCookie(const Http::Request &request) const diff --git a/src/webui/www/private/login.html b/src/webui/www/private/login.html index ecaa5fef1..6be455edd 100644 --- a/src/webui/www/private/login.html +++ b/src/webui/www/private/login.html @@ -2,7 +2,6 @@ - qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]