From 0569d1d752eebcb66f57f4a6d855624b844d170c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 6 Apr 2021 16:34:39 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 9eb1c9f..ea4cab1 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -784,6 +784,7 @@ 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) {