/** * @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; }
/** * {@inheritdoc} */ public function __construct(RequestAbstract $request) { parent::__construct($request); $this->_headers['Content-Type'] = 'text/html; charset=UTF-8'; }