mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-23 15:54:21 +01: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
1 changed files with 3 additions and 0 deletions
|
|
@ -145,6 +145,9 @@ bool HTTPUpload::SendRequest(const string &url,
|
|||
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 *);
|
||||
*(void**) (&curl_easy_perform) = dlsym(curl_lib, "curl_easy_perform");
|
||||
err_code = (*curl_easy_perform)(curl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue