IcingaObjectsHandler: force correct content-type
...for Rest API responses
This commit is contained in:
parent
4caf3fce51
commit
3c082ae9e8
|
@ -46,6 +46,8 @@ class IcingaObjectsHandler extends RequestHandler
|
||||||
|
|
||||||
protected function streamJsonResult()
|
protected function streamJsonResult()
|
||||||
{
|
{
|
||||||
|
$this->response->setHeader('Content-Type', 'application/json', true);
|
||||||
|
$this->response->sendHeaders();
|
||||||
$connection = $this->db;
|
$connection = $this->db;
|
||||||
Benchmark::measure('Ready to stream JSON result');
|
Benchmark::measure('Ready to stream JSON result');
|
||||||
$db = $connection->getDbAdapter();
|
$db = $connection->getDbAdapter();
|
||||||
|
|
Loading…
Reference in New Issue