From b9b5634461d568dd4ba306435ccf10ee054a6483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 31 Mar 2021 11:08:58 +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 31ada537..eb37690f 100644 --- a/HttpServer/Client/Http2.php +++ b/HttpServer/Client/Http2.php @@ -230,7 +230,7 @@ class Http2 extends Component } else { $port = 80; } - $client = new H2Client($domain, $port, $isSsl); + $client = new H2Client($domain, (int)$port, $isSsl); $client->set([ 'timeout' => $timeout, 'ssl_host_name' => $domain