src/RequestTrait.php 1 location
|
@@ 191-193 (lines=3) @@
|
188 |
|
$clone->headers->set('Host', $uri->getHost()); |
189 |
|
} |
190 |
|
} else { |
191 |
|
if ($this->uri->getHost() !== '' && (!$this->hasHeader('Host') || $this->getHeader('Host') === null)) { |
192 |
|
$clone->headers->set('Host', $uri->getHost()); |
193 |
|
} |
194 |
|
} |
195 |
|
|
196 |
|
return $clone; |
src/Request.php 1 location
|
@@ 79-81 (lines=3) @@
|
76 |
|
$this->validateMethod($requestMethod); |
77 |
|
$this->requestMethod = $requestMethod; |
78 |
|
|
79 |
|
if ($this->uri->getHost() !== '' && (!$this->hasHeader('Host') || $this->getHeader('Host') === null)) { |
80 |
|
$this->headers->set('Host', $this->uri->getHost()); |
81 |
|
} |
82 |
|
} |
83 |
|
} |
84 |
|
|