Permalink
Browse files

Fixed code for PHP 5.2

  • Loading branch information...
jrbasso committed Jan 21, 2014
1 parent ec71960 commit 5d016a7dbfc16e3d6972c3252b8a12f440426895
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Network/CakeResponse.php
@@ -1266,7 +1266,7 @@ public function cookie($options = null) {
* @return void
*/
public function cors(CakeRequest $request, $allowedDomains, $allowedMethods = array()) {
- $origin = $request::header('Origin');
+ $origin = $request->header('Origin');
if (!$origin) {
return;
}

0 comments on commit 5d016a7

Please sign in to comment.