正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -52,9 +52,10 @@ class Response implements ResponseInterface | @@ -52,9 +52,10 @@ class Response implements ResponseInterface | ||
| 52 | */ | 52 | */ |
| 53 | public function getContents(): string | 53 | public function getContents(): string |
| 54 | { | 54 | { |
| 55 | - $response = clone $this->response; | 55 | + $body = $this->response->getBody(); |
| 56 | + $body->rewind(); | ||
| 56 | 57 | ||
| 57 | - return $response->getBody()->getContents(); | 58 | + return $body->getContents(); |
| 58 | } | 59 | } |
| 59 | 60 | ||
| 60 | /** | 61 | /** |
-
请 注册 或 登录 后发表评论