add clear

This commit is contained in:
2020-11-25 11:00:46 +08:00
parent 3f26f94ff4
commit 2c808dd27c
+1 -1
View File
@@ -681,7 +681,7 @@ class HttpClient
curl_setopt($ch, CURLOPT_POST, 1);
}
if ($this->method != self::GET) {
if (!empty($data)) {
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
}