add clear
This commit is contained in:
@@ -475,6 +475,8 @@ class HttpClient
|
|||||||
if (!empty($this->_data)) {
|
if (!empty($this->_data)) {
|
||||||
$client->setData($this->_data);
|
$client->setData($this->_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$url = ltrim($url, '/');
|
||||||
if (strtolower($this->method) == self::GET) {
|
if (strtolower($this->method) == self::GET) {
|
||||||
if (!empty($data)) {
|
if (!empty($data)) {
|
||||||
$url .= '?' . $data;
|
$url .= '?' . $data;
|
||||||
|
|||||||
Reference in New Issue
Block a user