Changed: Real version of Ryzom Installer as user-agent

This commit is contained in:
kervala 2016-10-20 15:30:12 +02:00
parent b8005df332
commit 6d5b32d043

View file

@ -47,7 +47,7 @@ bool CDownloader::getHtmlPageContent(const QString &url)
if (url.isEmpty()) return false; if (url.isEmpty()) return false;
QNetworkRequest request(url); QNetworkRequest request(url);
request.setHeader(QNetworkRequest::UserAgentHeader, "Ryzom Installer/1.0"); request.setHeader(QNetworkRequest::UserAgentHeader, QString("Ryzom Installer/%1").arg(QApplication::applicationVersion()));
QNetworkReply *reply = m_manager->get(request); QNetworkReply *reply = m_manager->get(request);