[router.controller.api] added content-type JSON header

This commit is contained in:
xdrm-brackets 2018-03-01 17:43:03 +01:00
parent b2bce31632
commit 3d56d90b47
1 changed files with 3 additions and 1 deletions

View File

@ -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;