diff --git a/common/HttpClient.php b/common/HttpClient.php index a5ed285..e7f912d 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -463,10 +463,10 @@ class HttpClient */ private function resolve($data, $body) { - $type = $data['Content-Type'] ?? $data['content-type']; if (is_array($body)) { return $body; } + $type = $data['Content-Type'] ?? $data['content-type']; if (strpos($type, 'text/html') !== false) { return $body; } else if (strpos($type, 'json') !== false) {