Set some extra curl options
This commit is contained in:
parent
72e65dfe03
commit
f16f03059c
|
@ -89,8 +89,11 @@ CURL* MastodonClient::_get_easy() {
|
|||
}
|
||||
|
||||
try {
|
||||
setopt(curl, CURLOPT_SHARE, this->_share);
|
||||
setopt(curl, CURLOPT_FAILONERROR, 1L);
|
||||
setopt(curl, CURLOPT_TIMEOUT_MS, 5000L);
|
||||
setopt(curl, CURLOPT_PROTOCOLS_STR, "https");
|
||||
setopt(curl, CURLOPT_USERAGENT, "Coyote (https://gitlab.com/blankX/coyote; blankie@nixnetmail.com)");
|
||||
setopt(curl, CURLOPT_SHARE, this->_share);
|
||||
} catch (const std::exception& e) {
|
||||
curl_easy_cleanup(curl);
|
||||
throw;
|
||||
|
|
Loading…
Reference in New Issue