diff --git a/flight/Flight.php b/flight/Flight.php index b8b782e..7a707b5 100644 --- a/flight/Flight.php +++ b/flight/Flight.php @@ -399,7 +399,7 @@ class Flight { * @param mixed $data Data to JSON encode */ public static function _json($data) { - self::response(false) + self::response() ->status(200) ->header('Content-Type', 'application/json') ->write(json_encode($data))