summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2016-05-17 12:26:32 -0300
committerSilvio <silvio@socioambiental.org>2016-05-17 12:26:32 -0300
commitb1b463765403f01180276817d102719e02990769 (patch)
tree563af30cc20c70f727e6364f27df140037324b39
parent3475128f4877d75f54953cdcf42960c6cb77048e (diff)
downloadtimelinejs-b1b463765403f01180276817d102719e02990769.tar.gz
timelinejs-b1b463765403f01180276817d102719e02990769.tar.bz2
Explicity content type for json output
-rw-r--r--timelinejs.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/timelinejs.module b/timelinejs.module
index f8af966..0391a7a 100644
--- a/timelinejs.module
+++ b/timelinejs.module
@@ -168,6 +168,7 @@ function timelinejs_fetch_items($nid, $format = 'json') {
* Menu callback.
*/
function timelinejs_json($nid) {
+ header('Content-type: application/json; charset=utf-8', true);
print theme('timelinejs_json', timelinejs_fetch_items($nid));
// Avoid themable output.