add clear
This commit is contained in:
@@ -410,14 +410,14 @@ class HttpClient
|
||||
} else if (strtolower($this->method) == self::PUT) {
|
||||
$client->setMethod('PUT');
|
||||
if (!is_string($data)) {
|
||||
$data = json_encode($data, JSON_UNESCAPED_UNICODE);
|
||||
$data = json_encode($data);
|
||||
}
|
||||
$client->setData($data);
|
||||
$client->execute($url);
|
||||
} else if (strtolower($this->method) == self::DELETE) {
|
||||
$client->setMethod('DELETE');
|
||||
if (!is_string($data)) {
|
||||
$data = json_encode($data, JSON_UNESCAPED_UNICODE);
|
||||
$data = json_encode($data);
|
||||
}
|
||||
$client->setData($data);
|
||||
$client->execute($url);
|
||||
|
||||
Reference in New Issue
Block a user