From 83742695c103f28f2935f3cfc82ac19bd1e2a759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 24 Aug 2020 11:23:30 +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 d3f760b..d44322e 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -625,6 +625,7 @@ class HttpClient { try { $this->method = self::POST; + $this->addHeader('Content-Type', 'multipart/form-data;charset=UTF-8'); $output = $this->curlParse($url, $params); if ($output === FALSE) { return new Result(['code' => 500, 'message' => $output]);