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