diff --git a/src/Layout.php b/src/Layout.php
index <HASH>..<HASH> 100644
--- a/src/Layout.php
+++ b/src/Layout.php
@@ -161,7 +161,7 @@ class Layout
 		$app = \Slim\Slim::getInstance();
 
 		$app->response()->status($status);
-		$app->header('Content-Type', 'application/json');
+		$app->response()->header('Content-Type', 'application/json');
 
 		$body = json_encode($data);
 		$app->response()->body($data);
BUG: Didn't call response() for the header.