From e32f476dcae1d9af3652c6ba9f71b7a6a80f109a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 31 Mar 2021 11:30: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 | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/HttpServer/Client/Http2.php b/HttpServer/Client/Http2.php index d77d4bfc..8a4d1cae 100644 --- a/HttpServer/Client/Http2.php +++ b/HttpServer/Client/Http2.php @@ -194,15 +194,7 @@ class Http2 extends Component } else { $request->data = !is_string($params) && !$isUpload ? Json::encode($params) : $params; } - $request->headers = [ - 'user-agent' => 'Chrome/49.0.2587.3', - 'accept' => 'text/html,application/json', - 'accept-encoding' => 'gzip' - ]; - $headers = Context::getContext('http2Headers'); - if (!empty($headers) && is_array($headers)) { - $request->headers = array_merge($request->headers, $headers); - } + $request->headers = Context::getContext('http2Headers'); return $request; }