This commit is contained in:
2020-11-18 14:53:32 +08:00
parent dc1dc577e7
commit b62f8340fe
+2 -1
View File
@@ -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];
}