[HttpClient] fix unregistering the debug buffer when using curl
This commit is contained in:
parent
2438b1422a
commit
4fce813ed0
@ -167,6 +167,7 @@ final class CurlResponse implements ResponseInterface
|
|||||||
if (!\in_array(curl_getinfo($this->handle, CURLINFO_PRIVATE), ['headers', 'content'], true)) {
|
if (!\in_array(curl_getinfo($this->handle, CURLINFO_PRIVATE), ['headers', 'content'], true)) {
|
||||||
rewind($this->debugBuffer);
|
rewind($this->debugBuffer);
|
||||||
$info['debug'] = stream_get_contents($this->debugBuffer);
|
$info['debug'] = stream_get_contents($this->debugBuffer);
|
||||||
|
curl_setopt($this->handle, CURLOPT_VERBOSE, false);
|
||||||
fclose($this->debugBuffer);
|
fclose($this->debugBuffer);
|
||||||
$this->debugBuffer = null;
|
$this->debugBuffer = null;
|
||||||
$this->finalInfo = $info;
|
$this->finalInfo = $info;
|
||||||
|
Reference in New Issue
Block a user