/** * @return Response\Http */ public function getResponse() { if ($this->_request->isDispatched() && $this->_request->isAjax()) { $this->_response->setHeader('Content-Type', 'application/json, text/xml, text/html; charset=UTF-8', true); } return $this->_response; }