Cleaned up UserAgent info
This commit is contained in:
parent
e61f33a3e9
commit
89f328e059
|
@ -46,7 +46,7 @@ VersionChecker::~VersionChecker()
|
||||||
void VersionChecker::checkLatest()
|
void VersionChecker::checkLatest()
|
||||||
{
|
{
|
||||||
auto request = QNetworkRequest(QUrl(VERSION_URL));
|
auto request = QNetworkRequest(QUrl(VERSION_URL));
|
||||||
request.setHeader(QNetworkRequest::UserAgentHeader, QString("Synergy GUI ") + getVersion().toStdString().c_str());
|
request.setHeader(QNetworkRequest::UserAgentHeader, QString("Synergy (") + getVersion() + ") " + QSysInfo::prettyProductName());
|
||||||
request.setRawHeader("X-Synergy-Version", getVersion().toStdString().c_str() );
|
request.setRawHeader("X-Synergy-Version", getVersion().toStdString().c_str() );
|
||||||
m_manager->get(request);
|
m_manager->get(request);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue