From afb022c17f246f9ceb6e96607d43c3704828ba9e Mon Sep 17 00:00:00 2001 From: twosee Date: Fri, 8 May 2020 18:23:16 +0800 Subject: [PATCH] Update dependencies --- composer.json | 4 ++-- src/Request.php | 2 +- src/Response.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index e13b385..eb0802f 100644 --- a/composer.json +++ b/composer.json @@ -26,8 +26,8 @@ }, "require": { "php": ">=7.1", - "swlib/http": "1.0.6", - "swlib/util": "1.0.1" + "swlib/http": "1.0.7", + "swlib/util": "1.0.2" }, "require-dev": { "phpunit/phpunit": "~7" diff --git a/src/Request.php b/src/Request.php index 06b24a3..d9382c2 100755 --- a/src/Request.php +++ b/src/Request.php @@ -96,7 +96,7 @@ class Request extends \Swlib\Http\Request function __construct(string $method = 'GET', $uri = '', array $headers = [], ?StreamInterface $body = null) { parent::__construct($method, $uri, $headers, $body); - $this->__cookiesInitialization(true); + $this->__constructCookiesManager(true); $this->initBasicAuth(); } diff --git a/src/Response.php b/src/Response.php index 0abba68..e1d7ecb 100755 --- a/src/Response.php +++ b/src/Response.php @@ -93,7 +93,7 @@ function __construct(Request $request) $this->withBody(stream_for($body)); /** data parser */ - $this->__stringDataParserInitialization($this->body); + $this->__constructStringDataParser($this->body); /** mark */ $this->special_marks = $request->special_marks;