summaryrefslogtreecommitdiff
path: root/modules/rest/helpers/rest.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-19 19:31:24 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-19 19:31:24 -0800
commitb8c09b6d872d00ad74d2f41d7699e12ee10bd361 (patch)
tree76cd09a62badc9028718280373b9106ae4355f11 /modules/rest/helpers/rest.php
parente02675b730fb814105e1cb9dceb0e25fdcbd3e27 (diff)
Use an appropriate json content type
Diffstat (limited to 'modules/rest/helpers/rest.php')
-rw-r--r--modules/rest/helpers/rest.php1
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);
}
}