diff options
author | ck <qt-info@nokia.com> | 2010-01-21 14:58:41 (GMT) |
---|---|---|
committer | ck <qt-info@nokia.com> | 2010-01-21 15:02:19 (GMT) |
commit | 39ddaa4e2c1396dfbf66574cc60ee784fddfdde2 (patch) | |
tree | c3c324b72e2cc97199a3eb432e306b26cf97cb6f /tools/assistant | |
parent | 2ae6b44e4242c60bd882661e104bb53fa6670556 (diff) | |
download | Qt-39ddaa4e2c1396dfbf66574cc60ee784fddfdde2.zip Qt-39ddaa4e2c1396dfbf66574cc60ee784fddfdde2.tar.gz Qt-39ddaa4e2c1396dfbf66574cc60ee784fddfdde2.tar.bz2 |
Assistant: Set correct mime type for text documents.
Task-number: QTBUG-6796
Reviewed-by: kh1
Diffstat (limited to 'tools/assistant')
-rw-r--r-- | tools/assistant/tools/assistant/helpviewer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/assistant/tools/assistant/helpviewer.cpp b/tools/assistant/tools/assistant/helpviewer.cpp index 1900c7e..be6245a 100644 --- a/tools/assistant/tools/assistant/helpviewer.cpp +++ b/tools/assistant/tools/assistant/helpviewer.cpp @@ -141,12 +141,12 @@ QNetworkReply *HelpNetworkAccessManager::createRequest(Operation /*op*/, if (mimeType.endsWith(QLatin1String(".svg")) || mimeType.endsWith(QLatin1String(".svgz"))) { mimeType = QLatin1String("image/svg+xml"); - } - else if (mimeType.endsWith(QLatin1String(".css"))) { + } else if (mimeType.endsWith(QLatin1String(".css"))) { mimeType = QLatin1String("text/css"); - } - else if (mimeType.endsWith(QLatin1String(".js"))) { + } else if (mimeType.endsWith(QLatin1String(".js"))) { mimeType = QLatin1String("text/javascript"); + } else if (mimeType.endsWith(QLatin1String(".txt"))) { + mimeType = QLatin1String("text/plain"); } else { mimeType = QLatin1String("text/html"); } |