diff options
| author | saturneric <[email protected]> | 2026-09-22 21:18:54 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-09-22 21:18:54 +0200 |
| commit | 4dabcb5c04bd018d838e5191b299dc7d04929f21 (patch) | |
| tree | 9a872c9b0a71051093aec34b6ec364a2416b2e62 /src/m_key_server_sync/KeyServerProbe.cpp | |
| parent | refactor(gpg-info): migrate to module SDK APIs (diff) | |
| download | modules-4dabcb5c04bd018d838e5191b299dc7d04929f21.tar.gz modules-4dabcb5c04bd018d838e5191b299dc7d04929f21.zip | |
refactor(key-server-sync): migrate to SDK APIs
- use module-scoped storage and application user-agent providers
- replace legacy key export and import calls with SDK wrappers
- register and unregister settings pages through the SDK
- migrate GPG channel lookup and session cache operations
- declare storage capability in the module manifest
Diffstat (limited to 'src/m_key_server_sync/KeyServerProbe.cpp')
| -rw-r--r-- | src/m_key_server_sync/KeyServerProbe.cpp | 4 |
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); |
