Skip to content

Commit 053ab87

Browse files
AndrasZiegenhamchriskacerguis
authored andcommitted
response continue fix (chriskacerguis#722)
1 parent dfb0a4f commit 053ab87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

application/libraries/REST_Controller.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ public function _remap($object_called, $arguments = [])
745745
*/
746746
public function response($data = NULL, $http_code = NULL, $continue = FALSE)
747747
{
748+
ob_start();
748749
// If the HTTP status is not NULL, then cast as an integer
749750
if ($http_code !== NULL)
750751
{
@@ -813,6 +814,10 @@ public function response($data = NULL, $http_code = NULL, $continue = FALSE)
813814
$this->output->_display();
814815
exit;
815816
}
817+
else
818+
{
819+
ob_end_flush();
820+
}
816821

817822
// Otherwise dump the output automatically
818823
}

0 commit comments

Comments
 (0)