lib/curl/Request: postpone the curl_easy_cleanup() call

When the request is done, only unregister the CURL* handle, but do not
delete it yet - it may still be needed for CURLINFO_RESPONSE_CODE.
This commit is contained in:
Max Kellermann 2017-01-08 13:24:58 +01:00
parent dc53098e43
commit 13b85edbe2

View File

@ -151,7 +151,7 @@ CurlRequest::FinishBody()
void
CurlRequest::Done(CURLcode result)
{
FreeEasy();
Stop();
try {
if (result != CURLE_OK) {