Move output buffer clearing to individual handlers

This commit is contained in:
filp
2013-04-20 12:12:54 +01:00
parent 4dd812c456
commit c37eb037d2
4 changed files with 8 additions and 5 deletions
+4 -1
View File
@@ -71,6 +71,9 @@ class JsonResponseHandler extends Handler
return Handler::DONE;
}
// Remove any previous output
ob_get_level() and ob_end_clean();
$exception = $this->getException();
$response = array(
@@ -103,4 +106,4 @@ class JsonResponseHandler extends Handler
echo json_encode($response);
return Handler::QUIT;
}
}
}