From b62f8340fe870f728a6ccbccd62a197bc211ca4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 18 Nov 2020 14:53:32 +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 --- HttpServer/Client/Curl.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Client/Curl.php b/HttpServer/Client/Curl.php index 8506ec14..932e9cff 100644 --- a/HttpServer/Client/Curl.php +++ b/HttpServer/Client/Curl.php @@ -148,7 +148,6 @@ class Curl extends ClientAbstracts if ($output === FALSE) { return $this->fail(500, $output); } - var_dump($output); [$header, $body, $status] = $this->explode($output); if ($status != 200 && $status != 201) { $data = $this->fail($status, $body, [], $header); @@ -180,6 +179,8 @@ class Curl extends ClientAbstracts $status = (int)explode(' ', trim($header[0]))[1]; $header = $this->headerFormat($header); + var_dump($this->resolve($header, $body)); + return [$header, $this->resolve($header, $body), $status]; }