Merge remote-tracking branch 'upstream/develop' into develop

This commit is contained in:
Chris Berthe
2012-07-12 11:15:43 -04:00
25 changed files with 538 additions and 44 deletions

View File

@@ -93,7 +93,7 @@ class Response {
*/
public static function json($data, $status = 200, $headers = array())
{
$headers['Content-Type'] = 'application/json';
$headers['Content-Type'] = 'application/json; charset=utf-8';
return new static(json_encode($data), $status, $headers);
}
@@ -113,7 +113,7 @@ class Response {
*/
public static function eloquent($data, $status = 200, $headers = array())
{
$headers['Content-Type'] = 'application/json';
$headers['Content-Type'] = 'application/json; charset=utf-8';
return new static(eloquent_to_json($data), $status, $headers);
}