public function postDispatch() {
$response = $this->getResponse();
- $response->setHeader('Content-Type', $this->_contentType)
- ->setHeader('Content-Length', strlen($this->_body));
+ $response->setHeader('Content-Type', $this->_contentType, true)
+ ->setHeader('Content-Length', strlen($this->_body), true);
if ($this->_checkIfNoneMatch) {
$request = $this->getRequest();