From c4997abb4a192789902b0220473f9ad4b09d7145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 31 Mar 2021 11:13:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Client/Http2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Client/Http2.php b/HttpServer/Client/Http2.php index eb37690f..60346b28 100644 --- a/HttpServer/Client/Http2.php +++ b/HttpServer/Client/Http2.php @@ -195,7 +195,6 @@ class Http2 extends Component $request->data = !is_string($params) && !$isUpload ? Json::encode($params) : $params; } $request->headers = [ - 'host' => $domain, 'user-agent' => 'Chrome/49.0.2587.3', 'accept' => 'text/html,application/json', 'accept-encoding' => 'gzip' @@ -216,6 +215,7 @@ class Http2 extends Component * @throws ComponentException * @throws NotFindClassException * @throws ReflectionException + * @throws Exception */ private function getClient($domain, $isSsl = false, $timeout = -1): H2Client {