Skip to content

Commit 5572012

Browse files
[HttpClient] fix unregistering the debug buffer when using curl
1 parent 8a2bb86 commit 5572012

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Response/CurlResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ public function getInfo(string $type = null)
167167
if (!\in_array(curl_getinfo($this->handle, CURLINFO_PRIVATE), ['headers', 'content'], true)) {
168168
rewind($this->debugBuffer);
169169
$info['debug'] = stream_get_contents($this->debugBuffer);
170+
curl_setopt($this->handle, CURLOPT_VERBOSE, false);
170171
fclose($this->debugBuffer);
171172
$this->debugBuffer = null;
172173
$this->finalInfo = $info;

0 commit comments

Comments
 (0)