diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index ea4cab1..d5f5916 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -784,7 +784,6 @@ class HttpClient return $body; } $type = isset($data['content-type']) ? $data['content-type'] : (isset($data['Content-Type']) ? $data['Content-Type'] : 'text/html'); - var_dump($type, $body); if (strpos($type, 'text/html') !== false) { return $body; } else if (strpos($type, 'json') !== false) { @@ -792,6 +791,7 @@ class HttpClient } else if (strpos($type, 'xml') !== false) { return Help::xmlToArray($body); } else if (strpos($type, 'plain') !== false) { + var_dump($type, $body); return Help::toArray($body); } return $body;