This commit is contained in:
2021-01-08 12:09:24 +08:00
parent bdc4c78947
commit 5ebf614a2a
-2
View File
@@ -93,8 +93,6 @@ class Client extends ClientAbstracts
if (!empty($this->getAgent())) { if (!empty($this->getAgent())) {
$this->addHeader('User-Agent', $this->getAgent()); $this->addHeader('User-Agent', $this->getAgent());
} }
var_dump($this->getHeader());
$client->setHeaders($this->getHeader()); $client->setHeaders($this->getHeader());
$client->setMethod(strtoupper($this->getMethod())); $client->setMethod(strtoupper($this->getMethod()));
if (strtolower($this->getMethod()) == self::GET && !empty($data)) { if (strtolower($this->getMethod()) == self::GET && !empty($data)) {