From 1ca45f821503272d3b2d9e9830752fdf805bdb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 13 Aug 2021 15:50:01 +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/ClientAbstracts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Client/ClientAbstracts.php b/HttpServer/Client/ClientAbstracts.php index 4f83649e..85a255b3 100644 --- a/HttpServer/Client/ClientAbstracts.php +++ b/HttpServer/Client/ClientAbstracts.php @@ -739,7 +739,7 @@ abstract class ClientAbstracts extends Component implements IClient $this->host = $domain; } $this->header['Host'] = $domain; - if (strpos($path, '/') !== 0) { + if (!str_starts_with($path, '/')) { $path = '/' . $path; } return [$this->host, $isHttps, $path];