diff options
author | Silvio <silvio@socioambiental.org> | 2016-05-17 12:26:32 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2016-05-17 12:26:32 -0300 |
commit | b1b463765403f01180276817d102719e02990769 (patch) | |
tree | 563af30cc20c70f727e6364f27df140037324b39 | |
parent | 3475128f4877d75f54953cdcf42960c6cb77048e (diff) | |
download | timelinejs-b1b463765403f01180276817d102719e02990769.tar.gz timelinejs-b1b463765403f01180276817d102719e02990769.tar.bz2 |
Explicity content type for json output
-rw-r--r-- | timelinejs.module | 1 |
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. |