From cfa02f2204813e973ef17cb3c4d45d3dc160638c Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Tue, 4 Jun 2013 16:21:15 +0530 Subject: [PATCH] Json mimetype is application/json Change-Id: Ifd52bc2e4e9f80b8487e98f723dc05b103a39630 --- api/ApiULSLocalization.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ApiULSLocalization.php b/api/ApiULSLocalization.php index e49a7202..f03cf78e 100644 --- a/api/ApiULSLocalization.php +++ b/api/ApiULSLocalization.php @@ -43,12 +43,12 @@ class ApiULSLocalization extends ApiBase { $localPath = __DIR__ . "/../$filename"; if ( !file_exists( $localPath ) ) { $this->getResult()->addValue( null, 'text', '{}' ); - $this->getResult()->addValue( null, 'mime', 'text/json' ); + $this->getResult()->addValue( null, 'mime', 'application/json' ); } else { $contents = file_get_contents( $localPath ); // Output the file's contents raw $this->getResult()->addValue( null, 'text', $contents ); - $this->getResult()->addValue( null, 'mime', 'text/json' ); + $this->getResult()->addValue( null, 'mime', 'application/json' ); } }