Use the new function in patched naett to update user agent

This commit is contained in:
Henrik Rydgård 2023-07-21 17:52:38 +02:00
parent 9535b16740
commit ac6301db47

View file

@ -27,6 +27,7 @@ void HTTPSDownload::Start() {
std::vector<naettOption *> 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()));
}