Commit 9038e718 authored by Paweł Wegner's avatar Paweł Wegner
Browse files

CurlHttp: set proper code when aborted.

parent b9d0c620
......@@ -152,7 +152,7 @@ void RequestData::done(int code) {
ret = http_code;
} else {
*error_stream_ << curl_easy_strerror(static_cast<CURLcode>(code));
ret = -code;
ret = (code == CURLE_ABORTED_BY_CALLBACK) ? IHttpRequest::Aborted : -code;
}
complete_(ret, stream_, error_stream_);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment