]> source.dussan.org Git - nextcloud-server.git/commitdiff
Change json content-type to correct IANA type
authorBart Visscher <bartv@thisnet.nl>
Wed, 28 Sep 2011 21:16:31 +0000 (23:16 +0200)
committerBart Visscher <bartv@thisnet.nl>
Wed, 28 Sep 2011 21:17:25 +0000 (23:17 +0200)
lib/json.php

index 5ebd6c6b759b10cbffb60aa02ee62b084895352f..6ab0404c081a20385fc2fd25b771a3e9d0ea6ccc 100644 (file)
@@ -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 );