[router.controller.api] added content-type JSON header
This commit is contained in:
parent
b2bce31632
commit
3d56d90b47
|
@ -37,8 +37,10 @@
|
||||||
$this->response = $this->request->dispatch();
|
$this->response = $this->request->dispatch();
|
||||||
|
|
||||||
/* (2) Manages result */
|
/* (2) Manages result */
|
||||||
if( $this->response instanceof Response )
|
if( $this->response instanceof Response ){
|
||||||
|
header('Content-Type: application/json');
|
||||||
echo $this->response->serialize();
|
echo $this->response->serialize();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue