Fix User-Agent.
This commit is contained in:
parent
a6139b4390
commit
89c50951b3
|
@ -232,7 +232,7 @@ void CURLWrapper::setup_curl()
|
||||||
|
|
||||||
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
|
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
|
||||||
CURLcode code{curl_easy_setopt(_connection, CURLOPT_USERAGENT,
|
CURLcode code{curl_easy_setopt(_connection, CURLOPT_USERAGENT,
|
||||||
(string("mastorss/") += version).c_str())};
|
(string("mastodonpp/") += version).c_str())};
|
||||||
if (code != CURLE_OK)
|
if (code != CURLE_OK)
|
||||||
{
|
{
|
||||||
throw CURLException{code, "Failed to set User-Agent",
|
throw CURLException{code, "Failed to set User-Agent",
|
||||||
|
|
Loading…
Reference in New Issue