From b8c09b6d872d00ad74d2f41d7699e12ee10bd361 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 19 Jan 2010 19:31:24 -0800 Subject: Use an appropriate json content type --- modules/rest/helpers/rest.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/rest/helpers') 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); } } -- cgit v1.2.3