qqq
This commit is contained in:
+1
-2
@@ -37,8 +37,7 @@ class CoroutineClient extends ClientAbstracts
|
||||
}
|
||||
$host = $this->getHost();
|
||||
if (!preg_match('/(\d{1,3}\.){3}\d{1,3}/', $host)) {
|
||||
$this->withHost(System::gethostbyname($host));
|
||||
$this->withAddedHeader('Host', $host);
|
||||
$this->withHost(System::gethostbyname($host))->withAddedHeader('Host', $host);
|
||||
}
|
||||
$this->withMethod($method)
|
||||
->coroutine(
|
||||
|
||||
Reference in New Issue
Block a user