diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-19 19:31:24 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-19 19:31:24 -0800 |
commit | b8c09b6d872d00ad74d2f41d7699e12ee10bd361 (patch) | |
tree | 76cd09a62badc9028718280373b9106ae4355f11 /modules | |
parent | e02675b730fb814105e1cb9dceb0e25fdcbd3e27 (diff) |
Use an appropriate json content type
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rest/helpers/rest.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index 93ad2bd3..27bafabd 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -22,6 +22,7 @@ class rest_Core { Session::abort_save(); if ($data) { + header("Content-type: application/json"); print json_encode($data); } } |