add clear

This commit is contained in:
2020-11-25 16:45:27 +08:00
parent f174d9450e
commit b92fdeee39
+1 -1
View File
@@ -681,7 +681,7 @@ class HttpClient
curl_setopt($ch, CURLOPT_POST, 1);
}
if ($this->method == self::GET || !empty($this->_data)) {
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data);
} else {
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->mergeParams($data));
}