add clear
This commit is contained in:
@@ -353,6 +353,9 @@ class HttpClient
|
||||
$client->get($url . '?' . $data);
|
||||
} else if (strtolower($this->method) == self::PUT) {
|
||||
$client->setMethod('put');
|
||||
$client->setHeaders([
|
||||
'Content-Type' => 'application/json'
|
||||
]);
|
||||
if (!is_string($data)) {
|
||||
$data = json_encode($data, JSON_UNESCAPED_UNICODE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user