From d0fbaa6f04527e1abacbc2004c62ee2e7877c90b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 1 Mar 2018 17:55:13 +0100 Subject: [PATCH] [router.controller.api] fixed content-type JSON header --- build/router/controller/api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/router/controller/api.php b/build/router/controller/api.php index 288c625..a6b0987 100644 --- a/build/router/controller/api.php +++ b/build/router/controller/api.php @@ -33,12 +33,13 @@ */ public function call(){ + header('Content-Type: application/json'); + /* (1) Process response */ $this->response = $this->request->dispatch(); /* (2) Manages result */ if( $this->response instanceof Response ){ - header('Content-Type: application/json'); echo $this->response->serialize(); }