diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-08 11:13:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-08 11:13:05 -0700 |
commit | 827d4740c3bc2d449ab32a1ef829191bff20d46f (patch) | |
tree | d93378fce52b3456c0438c0f73e876c45fba3b11 /qt-ui/updatemanager.cpp | |
parent | a9f59c0cb3c1aa038a1d0c035d47130ddba58beb (diff) | |
download | subsurface-827d4740c3bc2d449ab32a1ef829191bff20d46f.tar.gz |
Better User Agent for Subsurface
This one is less verbose and very easy to parse. It's guaranteed to have
five components, separated by ':' with no other ':' in the string:
Subsurface:<version>:<PrettyOSName>:<appCpuArch[/osCpuArch]>:<UILang>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/updatemanager.cpp')
-rw-r--r-- | qt-ui/updatemanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/updatemanager.cpp b/qt-ui/updatemanager.cpp index 4729998c7..4ea9f188e 100644 --- a/qt-ui/updatemanager.cpp +++ b/qt-ui/updatemanager.cpp @@ -28,7 +28,7 @@ void UpdateManager::checkForUpdates() QNetworkRequest request; request.setUrl(url); request.setRawHeader("Accept", "text/xml"); - QString userAgent = UserSurvey::getVersion().replace("\n", " "); + QString userAgent = UserSurvey::getUserAgent(); request.setRawHeader("User-Agent", userAgent.toUtf8()); connect(SubsurfaceWebServices::manager()->get(request), SIGNAL(finished()), this, SLOT(requestReceived())); } |