summaryrefslogtreecommitdiffstats
path: root/lib/json.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-09-28 23:16:31 +0200
committerBart Visscher <bartv@thisnet.nl>2011-09-28 23:17:25 +0200
commit19d4121763d663ba048d4b0403a9b343d6f74e5d (patch)
treeadf81acb9412c198ed4cf16dee5fdcb02306de91 /lib/json.php
parent3ebf1a5a3b717e99622c3ba6dd10300a3805471b (diff)
downloadnextcloud-server-19d4121763d663ba048d4b0403a9b343d6f74e5d.tar.gz
nextcloud-server-19d4121763d663ba048d4b0403a9b343d6f74e5d.zip
Change json content-type to correct IANA type
Diffstat (limited to 'lib/json.php')
-rw-r--r--lib/json.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/json.php b/lib/json.php
index 5ebd6c6b759..6ab0404c081 100644
--- a/lib/json.php
+++ b/lib/json.php
@@ -11,7 +11,7 @@ class OC_JSON{
/**
* set Content-Type header to jsonrequest
*/
- public static function setContentTypeHeader($type='application/jsonrequest'){
+ public static function setContentTypeHeader($type='application/json'){
if (!self::$send_content_type_header){
// We send json data
header( 'Content-Type: '.$type );