From 3c5f02d52aac9eae18207cdcae87356f2754df3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 21 May 2020 17:07:42 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 5563ebe..9bf1e0a 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -554,7 +554,7 @@ class HttpClient return $data; } } - $contentType = $this->header['Content-Type'] ?? 'application/json'; + $contentType = $this->header['Content-Type'] ?? null; if (strpos($contentType, 'json') !== false) { return Help::toJson($data); } else if (strpos($contentType, 'xml') !== false) {