From 97fd798cab5aa3d929069096427528be17745bc3 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Sat, 14 Jun 2014 15:48:04 +0100 Subject: [PATCH] Add correct JSON Content-Type --- plugins/restapi/includes/response.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/restapi/includes/response.php b/plugins/restapi/includes/response.php index 7ec855e..c63a650 100644 --- a/plugins/restapi/includes/response.php +++ b/plugins/restapi/includes/response.php @@ -30,7 +30,7 @@ function setData( $type, $data ){ } function output(){ - + header('Content-Type: application/json'); echo $this->json_encode2( $this->result ); die(0); @@ -109,4 +109,4 @@ static function outputMessage( $message ){ } -?> \ No newline at end of file +?>