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