add clear

This commit is contained in:
2021-04-06 15:49:46 +08:00
parent 74960d1df1
commit 50773cefad
+2
View File
@@ -692,8 +692,10 @@ class HttpClient
}
if ($this->method === self::POST) {
curl_setopt($ch, CURLOPT_POST, 1);
if (!is_string($data)) {
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->mergeParams($data));
}
}
$output = curl_exec($ch);
if ($output === false) {