作者 竞泽

fix:重置索引

@@ -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 /**