From f453f98b38ec7f3879a2a53e71ec3931d1b5e92e Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 19 Dec 2019 10:55:15 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index a3a22d9..32f47e1 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -358,7 +358,7 @@ class HttpClient echo $host . ':' . $this->getHostPort() . ' ' . $url . '?' . $data; $client->get($url . '?' . $data); } else if (strtolower($this->method) == self::PUT) { - $client->setMethod('put'); + $client->setMethod('PUT'); $client->setHeaders([ 'Content-Type' => 'application/json' ]);