mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 12:18:05 -06:00
Merge pull request #6445 from Chocobo1/fix
Follow http user-agent format
This commit is contained in:
@@ -206,7 +206,7 @@ bool AbstractWebApplication::readFile(const QString& path, QByteArray &data, QSt
|
||||
translateDocument(dataStr);
|
||||
|
||||
if (path.endsWith("about.html") || path.endsWith("index.html") || path.endsWith("client.js"))
|
||||
dataStr.replace("${VERSION}", VERSION);
|
||||
dataStr.replace("${VERSION}", QBT_VERSION);
|
||||
|
||||
data = dataStr.toUtf8();
|
||||
translatedFiles_[path] = data; // cashing translated file
|
||||
|
||||
@@ -348,7 +348,7 @@ void WebApplication::action_version_api_min()
|
||||
void WebApplication::action_version_qbittorrent()
|
||||
{
|
||||
CHECK_URI(0);
|
||||
print(QString(VERSION), Http::CONTENT_TYPE_TXT);
|
||||
print(QString(QBT_VERSION), Http::CONTENT_TYPE_TXT);
|
||||
}
|
||||
|
||||
void WebApplication::action_command_shutdown()
|
||||
|
||||
Reference in New Issue
Block a user