protected function _actionSend(KDispatcherContextInterface $context) { if (!$context->getRequest()->isGet() || $context->getResponse()->getContentType() !== 'text/html') { return parent::_actionSend($context); } }