From e566d32ccfb64876c3036ed78e0fbd3ac40899cd Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 6 Jul 2017 22:57:23 +0200 Subject: [PATCH] HostController: one more fix for JSON --- application/controllers/HostController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/controllers/HostController.php b/application/controllers/HostController.php index f3cb6b44..c8b76292 100644 --- a/application/controllers/HostController.php +++ b/application/controllers/HostController.php @@ -479,12 +479,14 @@ class HostController extends ObjectController throw new NotFoundError('The host "%s" is not an agent', $host->object_name); } - return $this->sendJson( + $this->sendJson( + $this->getResponse(), Util::getIcingaTicket( $host->object_name, $this->api()->getTicketSalt() ) ); + return; } return parent::handleApiRequest();