Explicitly call CURLWrapper::set_useragent() in setup_curl().

This commit is contained in:
tastytea 2020-01-26 03:51:32 +01:00
parent 65ff76312b
commit fe5ac46d52
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ void CURLWrapper::setup_curl()
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
curl_easy_setopt(_connection, CURLOPT_NOPROGRESS, 0L);
set_useragent((string("mastodonpp/") += version));
CURLWrapper::set_useragent((string("mastodonpp/") += version));
// The next 2 only fail if HTTP is not supported.
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)