diff --git a/common/HttpClient.php b/common/HttpClient.php index 6fc68ff..110f62d 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -467,15 +467,10 @@ class HttpClient if (is_array($body)) { return $body; } - if (strpos($type, 'json') !== false) { - return json_decode($body, true); - } else if (strpos($type, 'xml') !== false) { - return Help::toArray($body); - } else if (strpos($type, 'plain') !== false) { - return Help::toArray($body); - } else { + if (strpos($type, 'html') !== false) { return $body; } + return Help::toArray($body); } /**