Commit 60e0be5c authored by Nicolas Grekas's avatar Nicolas Grekas
Browse files

[HttpClient] fix destructing CurlResponse

No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
......@@ -233,7 +233,9 @@ final class CurlResponse implements ResponseInterface
$this->doDestruct();
} finally {
curl_setopt($this->handle, \CURLOPT_VERBOSE, false);
if (\is_resource($this->handle) || $this->handle instanceof \CurlHandle) {
curl_setopt($this->handle, \CURLOPT_VERBOSE, false);
}
}
}
......
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