Use [0] instead of current as HHVM might have problems with that
This commit is contained in:
parent
1c6eae9017
commit
9adcd15cb3
|
@ -493,7 +493,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
|||
if (isset($this->server['HTTP_X_FORWARDED_PROTO'])) {
|
||||
if (strpos($this->server['HTTP_X_FORWARDED_PROTO'], ',') !== false) {
|
||||
$parts = explode(',', $this->server['HTTP_X_FORWARDED_PROTO']);
|
||||
$proto = strtolower(trim(current($parts)));
|
||||
$proto = strtolower(trim($parts[0]));
|
||||
} else {
|
||||
$proto = strtolower($this->server['HTTP_X_FORWARDED_PROTO']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue