This commit is contained in:
2021-12-24 14:31:14 +08:00
parent 6ffe1af6d2
commit d07dbf1c8d
+1 -1
View File
@@ -84,7 +84,7 @@ class AsyncClient extends ClientAbstracts
if ($isHttps || $this->isSSL()) {
$this->client->enableSSL();
}
$this->client->set($this->settings());
$this->client->set(array_merge($this->settings(), ['package_eof' => "\r\n\r\n", 'open_eof_check' => true]));
if (!empty($this->getAgent())) {
$this->withAddedHeader('User-Agent', $this->getAgent());
}