正在显示
1 个修改的文件
包含
1 行增加
和
7 行删除
| @@ -50,14 +50,8 @@ class Response implements ResponseInterface | @@ -50,14 +50,8 @@ class Response implements ResponseInterface | ||
| 50 | */ | 50 | */ |
| 51 | public function getContent(): string | 51 | public function getContent(): string |
| 52 | { | 52 | { |
| 53 | - static $content = null; | ||
| 54 | - | ||
| 55 | - if (is_null($content)) { | ||
| 56 | $this->response->getBody()->rewind(); | 53 | $this->response->getBody()->rewind(); |
| 57 | 54 | ||
| 58 | - $content = $this->response->getBody()->getContents(); | ||
| 59 | - } | ||
| 60 | - | ||
| 61 | - return $content; | 55 | + return $this->response->getBody()->getContents(); |
| 62 | } | 56 | } |
| 63 | } | 57 | } |
-
请 注册 或 登录 后发表评论