From 170cd1455fa72a1567c5d581b53878ab41d7739f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 29 Sep 2021 16:01:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http-handler/Client/ClientAbstracts.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/http-handler/Client/ClientAbstracts.php b/http-handler/Client/ClientAbstracts.php index f4d926b4..5ea6be76 100644 --- a/http-handler/Client/ClientAbstracts.php +++ b/http-handler/Client/ClientAbstracts.php @@ -406,6 +406,9 @@ abstract class ClientAbstracts extends Component implements IClient */ public function getData(): StreamInterface { + if (!$this->_data) { + $this->_data = new Stream(); + } return $this->_data; }