From 075dcd3700cbaeeb1707b5eeefe91f6d8d9d049f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 5 Feb 2021 12:49:09 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 2316256..b0448e3 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -581,6 +581,9 @@ class HttpClient } else if (isset($this->header['content-type'])) { $contentType = $this->header['content-type']; } + if ($contentType == 'multipart/form-data') { + return $data; + } if (strpos($contentType, 'json') !== false) { return Help::toJson($data);