Skip to content

Commit

Permalink
Use the new function in patched naett to update user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jul 21, 2023
1 parent 9535b16 commit ac6301d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Common/Net/HTTPNaettRequest.cpp
Expand Up @@ -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()));
}
Expand Down

0 comments on commit ac6301d

Please sign in to comment.