Merge pull request #340 from kouts/patch-1

Halt method should clear response before sending.
pull/342/head
Mike Cao 7 years ago committed by GitHub
commit b6ded4f288

@ -364,6 +364,7 @@ class Engine {
*/ */
public function _halt($code = 200, $message = '') { public function _halt($code = 200, $message = '') {
$this->response() $this->response()
->clear()
->status($code) ->status($code)
->write($message) ->write($message)
->send(); ->send();

Loading…
Cancel
Save