From: Bart Visscher Date: Wed, 28 Sep 2011 21:16:31 +0000 (+0200) Subject: Change json content-type to correct IANA type X-Git-Tag: v3.0~101^2~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=19d4121763d663ba048d4b0403a9b343d6f74e5d;p=nextcloud-server.git Change json content-type to correct IANA type --- 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 );