add clear
This commit is contained in:
@@ -401,8 +401,10 @@ class HttpClient
|
|||||||
if (!empty($this->_data)) {
|
if (!empty($this->_data)) {
|
||||||
$client->setData($this->_data);
|
$client->setData($this->_data);
|
||||||
}
|
}
|
||||||
var_dump($client, $url . '?' . $data);
|
if (!empty($data)) {
|
||||||
$client->get($url . '?' . $data);
|
$url .= '?' . $data;
|
||||||
|
}
|
||||||
|
$client->get($url);
|
||||||
} else if (strtolower($this->method) == self::PUT) {
|
} else if (strtolower($this->method) == self::PUT) {
|
||||||
$client->setMethod('PUT');
|
$client->setMethod('PUT');
|
||||||
if (!is_string($data)) {
|
if (!is_string($data)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user