add clear

This commit is contained in:
as2252258@163.com
2019-12-19 10:45:21 +08:00
parent 11745b8b66
commit 824969968c
+3
View File
@@ -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);
}