diff --git a/common/HttpClient.php b/common/HttpClient.php index 0feb21f..6ac7fc8 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -465,6 +465,9 @@ class HttpClient private function resolve($data, $body) { $type = $data['Content-Type'] ?? $data['content-type']; + if (is_array($body)) { + return $body; + } if (strpos($type, 'json') !== false) { return json_decode($body, true); } else if (strpos($type, 'xml') !== false) {