Response: Set header Content-Type for every response by default
refs #12161
This commit is contained in:
parent
7cf6b860b5
commit
af5c578adf
|
@ -275,6 +275,8 @@ class Response extends Zend_Controller_Response_Http
|
|||
$this->setRedirect($redirectUrl->getAbsoluteUrl());
|
||||
}
|
||||
}
|
||||
|
||||
$this->setHeader("Content-Type", $this->getContentType(), true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -191,7 +191,7 @@ class JsonResponse extends Response
|
|||
*/
|
||||
public function sendHeaders()
|
||||
{
|
||||
$this->setHeader('Content-Type', 'application/json', true);
|
||||
$this->setContentType('application/json');
|
||||
parent::sendHeaders();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue