X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2Fhelpers%2FSyjApi.php;h=6016f99a75c6d76a8aa5a2102729396fad63ef89;hp=92974c5ea775ecb3ab96ba29b7a7e491d5eb7e75;hb=f9496a89b1cdbb8bed26742f19fc36559e502264;hpb=d2a6eeefc534a97762d715180d67f915ab204ae6 diff --git a/application/controllers/helpers/SyjApi.php b/application/controllers/helpers/SyjApi.php index 92974c5..6016f99 100644 --- a/application/controllers/helpers/SyjApi.php +++ b/application/controllers/helpers/SyjApi.php @@ -78,8 +78,8 @@ class Syj_Controller_Action_Helper_SyjApi extends Zend_Controller_Action_Helper_ 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();