[HttpClient] fix closing debug stream prematurely
This commit is contained in:
parent
c45c6e50e1
commit
21857a1edb
@ -168,8 +168,8 @@ final class CurlResponse implements ResponseInterface
|
|||||||
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);
|
curl_setopt($this->handle, CURLOPT_VERBOSE, false);
|
||||||
fclose($this->debugBuffer);
|
rewind($this->debugBuffer);
|
||||||
$this->debugBuffer = null;
|
ftruncate($this->debugBuffer, 0);
|
||||||
$this->finalInfo = $info;
|
$this->finalInfo = $info;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user