<?php
-/* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
class Syj_Controller_Action_Helper_SyjApi extends Zend_Controller_Action_Helper_Abstract
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();