aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_key_server_sync/KeyServerProbe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_key_server_sync/KeyServerProbe.cpp')
-rw-r--r--src/m_key_server_sync/KeyServerProbe.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/m_key_server_sync/KeyServerProbe.cpp b/src/m_key_server_sync/KeyServerProbe.cpp
index f93ac76..4124a6a 100644
--- a/src/m_key_server_sync/KeyServerProbe.cpp
+++ b/src/m_key_server_sync/KeyServerProbe.cpp
@@ -28,8 +28,6 @@
#include "KeyServerProbe.h"
-#include <GFSDKExtra.h>
-
#include <QCoreApplication>
#include <QJsonDocument>
#include <QNetworkAccessManager>
@@ -201,7 +199,7 @@ void KeyServerProber::send(const QString& url, bool is_hkp) {
QNetworkRequest request{QUrl(target)};
request.setHeader(QNetworkRequest::UserAgentHeader,
- QString::fromUtf8(GFHttpRequestUserAgent()));
+ QString::fromUtf8(GFAppUserAgent(GFModuleSdkContext())));
request.setTransferTimeout(kProbeTimeoutMs);
request.setAttribute(QNetworkRequest::RedirectPolicyAttribute,
QNetworkRequest::NoLessSafeRedirectPolicy);