UI: Handle HTTP errors for fetching remote files
This commit is contained in:
parent
1517062251
commit
cf9899bade
1 changed files with 1 additions and 0 deletions
|
|
@ -157,6 +157,7 @@ bool GetRemoteFile(const char *url, std::string &str, std::string &error,
|
|||
curl_easy_setopt(curl.get(), CURLOPT_ACCEPT_ENCODING, "");
|
||||
curl_easy_setopt(curl.get(), CURLOPT_HTTPHEADER, header);
|
||||
curl_easy_setopt(curl.get(), CURLOPT_ERRORBUFFER, error_in);
|
||||
curl_easy_setopt(curl.get(), CURLOPT_FAILONERROR, 1L);
|
||||
curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION,
|
||||
string_write);
|
||||
curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, &str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue