From 3d56d90b47472d7c294c787ac115f1253d897b2a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 1 Mar 2018 17:43:03 +0100 Subject: [PATCH] [router.controller.api] added content-type JSON header --- build/router/controller/api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/router/controller/api.php b/build/router/controller/api.php index 6778a66..288c625 100644 --- a/build/router/controller/api.php +++ b/build/router/controller/api.php @@ -37,8 +37,10 @@ $this->response = $this->request->dispatch(); /* (2) Manages result */ - if( $this->response instanceof Response ) + if( $this->response instanceof Response ){ + header('Content-Type: application/json'); echo $this->response->serialize(); + } return true;