This commit is contained in:
Mark Sch 2016-08-21 20:31:45 +02:00 committed by GitHub
parent d66011d0fa
commit b096005561

View file

@ -748,7 +748,7 @@ class CakeRequest implements ArrayAccess {
* @return mixed Either false on no header being set or the value of the header.
*/
public static function header($name) {
$httpName = 'HTTP_' . strtoupper(str_replace('-', '_', $name)); ;
$httpName = 'HTTP_' . strtoupper(str_replace('-', '_', $name));
if (isset($_SERVER[$httpName])) {
return $_SERVER[$httpName];
}