From 4fce813ed06f8a2608d9c6746605719ac606ba01 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 4 Jun 2019 08:38:41 +0200 Subject: [PATCH] [HttpClient] fix unregistering the debug buffer when using curl --- src/Symfony/Component/HttpClient/Response/CurlResponse.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Component/HttpClient/Response/CurlResponse.php b/src/Symfony/Component/HttpClient/Response/CurlResponse.php index 8cb5081e70..e9db983d7b 100644 --- a/src/Symfony/Component/HttpClient/Response/CurlResponse.php +++ b/src/Symfony/Component/HttpClient/Response/CurlResponse.php @@ -167,6 +167,7 @@ final class CurlResponse implements ResponseInterface if (!\in_array(curl_getinfo($this->handle, CURLINFO_PRIVATE), ['headers', 'content'], true)) { rewind($this->debugBuffer); $info['debug'] = stream_get_contents($this->debugBuffer); + curl_setopt($this->handle, CURLOPT_VERBOSE, false); fclose($this->debugBuffer); $this->debugBuffer = null; $this->finalInfo = $info;