[HttpClient] shutdown verbose output from curl at destruction

This commit is contained in:
Nicolas Grekas 2020-10-13 09:44:15 +02:00
parent 2a370143a4
commit a279d22d25

View File

@ -225,6 +225,8 @@ final class CurlResponse implements ResponseInterface
public function __destruct()
{
curl_setopt($this->handle, \CURLOPT_VERBOSE, false);
if (null === $this->timeout) {
return; // Unused pushed response
}