mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-09-27 05:28:20 +00:00
Propagate failure if http uploads fail with http error codes.
R=ted.mielczarek BUG=413 Review URL: http://breakpad.appspot.com/236001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@739 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
e41dc09252
commit
8322cd6586
|
@ -145,6 +145,9 @@ bool HTTPUpload::SendRequest(const string &url,
|
||||||
reinterpret_cast<void *>(response_body));
|
reinterpret_cast<void *>(response_body));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fail if 400+ is returned from the web server.
|
||||||
|
(*curl_easy_setopt)(curl, CURLOPT_FAILONERROR, 1);
|
||||||
|
|
||||||
CURLcode (*curl_easy_perform)(CURL *);
|
CURLcode (*curl_easy_perform)(CURL *);
|
||||||
*(void**) (&curl_easy_perform) = dlsym(curl_lib, "curl_easy_perform");
|
*(void**) (&curl_easy_perform) = dlsym(curl_lib, "curl_easy_perform");
|
||||||
err_code = (*curl_easy_perform)(curl);
|
err_code = (*curl_easy_perform)(curl);
|
||||||
|
|
Loading…
Reference in a new issue