add clear

This commit is contained in:
2020-11-25 11:05:58 +08:00
parent 87dd5dee46
commit f6b89da482
-3
View File
@@ -681,9 +681,6 @@ class HttpClient
curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POST, 1);
} }
if (!empty($this->_data)) {
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data);
}
if ($this->method != self::GET) { if ($this->method != self::GET) {
curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
} }