Fixed code for PHP 5.2

This commit is contained in:
Juan Basso 2014-01-21 09:55:11 -05:00
parent ec7196013c
commit 5d016a7dbf

View file

@ -1266,7 +1266,7 @@ class CakeResponse {
* @return void * @return void
*/ */
public function cors(CakeRequest $request, $allowedDomains, $allowedMethods = array()) { public function cors(CakeRequest $request, $allowedDomains, $allowedMethods = array()) {
$origin = $request::header('Origin'); $origin = $request->header('Origin');
if (!$origin) { if (!$origin) {
return; return;
} }