Last few characters missing in Codeigniter REST API, json Response -
i using codeigniter rest api, , having response code this
$this->response(array('error' => 'items not found'),403);
it works correctly in local machine, on server output this
{"error":"items not foun
the last few characters missing
the actual output should this
{"error":"items not found"}
i having same problem rest_controller. bit of hack, worked me.
- open rest_controller.php
locate , delete following code (at end of
response
function):if ( ! $this->_zlib_oc && ! $cfg->item('compress_output')) { header('content-length: ' . strlen($output)); }
then started showing complete json response.
Comments
Post a Comment