作者 竞泽

fix:stream

... ... @@ -50,14 +50,8 @@ class Response implements ResponseInterface
*/
public function getContent(): string
{
static $content = null;
$this->response->getBody()->rewind();
if (is_null($content)) {
$this->response->getBody()->rewind();
$content = $this->response->getBody()->getContents();
}
return $content;
return $this->response->getBody()->getContents();
}
}
... ...