From 9a115b84abef3cbe71d74a31ebc9914ea8694e04 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 20 Nov 2012 07:07:53 +0000 Subject: [PATCH] JSON method should use existing response --- flight/Flight.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))