From ac6301db476f4e55210b045e30dc17b729e2831a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 21 Jul 2023 17:52:38 +0200 Subject: [PATCH] Use the new function in patched naett to update user agent --- Common/Net/HTTPNaettRequest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/Net/HTTPNaettRequest.cpp b/Common/Net/HTTPNaettRequest.cpp index 55963e9558e4..87ca991ee9af 100644 --- a/Common/Net/HTTPNaettRequest.cpp +++ b/Common/Net/HTTPNaettRequest.cpp @@ -27,6 +27,7 @@ void HTTPSDownload::Start() { std::vector options; options.push_back(naettMethod(method_ == RequestMethod::GET ? "GET" : "POST")); options.push_back(naettHeader("Accept", acceptMime_)); + options.push_back(naettUserAgent(userAgent_.c_str())); if (!postMime_.empty()) { options.push_back(naettHeader("Content-Type", postMime_.c_str())); }