Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2017
dbtdsilva
libcloudstorage
Commits
9038e718
Commit
9038e718
authored
Aug 21, 2017
by
Paweł Wegner
Browse files
CurlHttp: set proper code when aborted.
parent
b9d0c620
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Utility/CurlHttp.cpp
View file @
9038e718
...
...
@@ -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_
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment