We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c45c6e5 commit 21857a1Copy full SHA for 21857a1
src/Symfony/Component/HttpClient/Response/CurlResponse.php
@@ -168,8 +168,8 @@ public function getInfo(string $type = null)
168
rewind($this->debugBuffer);
169
$info['debug'] = stream_get_contents($this->debugBuffer);
170
curl_setopt($this->handle, CURLOPT_VERBOSE, false);
171
- fclose($this->debugBuffer);
172
- $this->debugBuffer = null;
+ rewind($this->debugBuffer);
+ ftruncate($this->debugBuffer, 0);
173
$this->finalInfo = $info;
174
}
175
0 commit comments