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 6c29558 commit 6ccc375
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Common/Net/HTTPNaettRequest.cpp
Original file line number Diff line number Diff line change
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 6ccc375

Please sign in to comment.