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' ); } }