Skip to content

Commit

Permalink
Adding text/javascript content type as returned by facebook
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Crookes committed Jun 16, 2010
1 parent 304d6db commit 74725cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/datasources/rest_source.php
Expand Up @@ -138,6 +138,7 @@ public function request(&$model) {
unset($Xml);
break;
case 'application/json':
case 'text/javascript':
$response = json_decode($response, true);
break;
}
Expand Down

0 comments on commit 74725cf

Please sign in to comment.