Change json content-type to correct IANA type

This commit is contained in:
Bart Visscher 2011-09-28 23:16:31 +02:00
parent 3ebf1a5a3b
commit 19d4121763
1 changed files with 1 additions and 1 deletions

View 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 );