add clear
This commit is contained in:
@@ -416,7 +416,11 @@ class HttpClient
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
}
|
||||
if ($this->method != self::GET) {
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
||||
if (!empty($this->_data)) {
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data);
|
||||
} else {
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
||||
}
|
||||
}
|
||||
|
||||
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, strtoupper($this->method));
|
||||
|
||||
Reference in New Issue
Block a user