This commit is contained in:
2021-08-13 15:50:01 +08:00
parent c06506d487
commit 1ca45f8215
+1 -1
View File
@@ -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];