[RequestHandler] fixed typo
This commit is contained in:
parent
8ea13f910c
commit
2a2ed30b87
@ -351,7 +351,7 @@ class Request
|
|||||||
public function getHost()
|
public function getHost()
|
||||||
{
|
{
|
||||||
if ($host = $this->headers->get('X_FORWARDED_HOST')) {
|
if ($host = $this->headers->get('X_FORWARDED_HOST')) {
|
||||||
$elements = implode(',', $host);
|
$elements = explode(',', $host);
|
||||||
|
|
||||||
return trim($elements[count($elements) - 1]);
|
return trim($elements[count($elements) - 1]);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user