add clear
This commit is contained in:
@@ -195,8 +195,8 @@ class HttpClient
|
||||
*/
|
||||
public function setHost(string $host)
|
||||
{
|
||||
var_dump($host);
|
||||
$this->host = $this->replaceHost($host);
|
||||
var_dump($this->host);
|
||||
$match_quest = '/^[a-zA-Z\-]+(\.[a-zA-Z\-])+/';
|
||||
if (preg_match($match_quest, $this->host)) {
|
||||
$this->addHeader('Host', $this->host);
|
||||
|
||||
Reference in New Issue
Block a user