diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-09-26 00:19:34 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-09-26 00:19:34 +0200 |
commit | bcf92badd1dae888fec85c1b3615a924a2e6a859 (patch) | |
tree | 1063ac8bd982f4ec974f727511f5c5a2f5e3bee3 /lib/json.php | |
parent | 63e6863222b92d7fc2e6ca5ccb3ab79688594348 (diff) | |
download | nextcloud-server-bcf92badd1dae888fec85c1b3615a924a2e6a859.tar.gz nextcloud-server-bcf92badd1dae888fec85c1b3615a924a2e6a859.zip |
dont set content type to json for Apps
Diffstat (limited to 'lib/json.php')
-rw-r--r-- | lib/json.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/json.php b/lib/json.php index 47d5e82fbb0..5ebd6c6b759 100644 --- a/lib/json.php +++ b/lib/json.php @@ -61,8 +61,10 @@ class OC_JSON{ /** * Encode and print $data in json format */ - public static function encodedPrint($data){ - self::setContentTypeHeader(); + public static function encodedPrint($data,$setContentType=true){ + if($setContentType){ + self::setContentTypeHeader(); + } echo json_encode($data); } } |