Hi I have a strange problem. I am examining the response payload and I have 4 white spaces appended before my content:
curl -i http://localhost/ARestFul HTTP/1.1 200 OK Date: Wed, 06 Mar 2013 17:37:22 GMT Server: Apache/2.2.22 (Unix) PHP/5.3.15 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 X-Powered-By: PHP/5.3.15 Content-Length: 17 Content-Type: application/json; charset=utf-8 {"foo":"bar"} 4 empty spaces before {"foo:"bar"} which I don't know where that's coming from. I have a REST controller that extends AbstractRestfulController. I've configured the module to output as JSON through: module.config.php view_manager' => array( 'strategies' => array( 'ViewJsonStrategy' ), ), ARestFulController.php public function getList() { return new JsonModel(array('foo'=>'bar')); } I am trying to figure out why it adds the 4 extra spaces before {"foo":"bar"} Anyone know? -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/4-whitespaces-appended-on-Response-Body-tp4659403.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
