Skip to content

Commit d8c7665

Browse files
committed
Merge pull request #6 from nashjain/patch-3
Removed response_json() method as it was redundant. This is done by default for complex types.
2 parents e1f249a + 8e3eb98 commit d8c7665

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,6 @@ function response_500($body)
398398
return response($body, 500);
399399
}
400400

401-
function response_json($values)
402-
{
403-
return response(json_encode($values), 200, array('content-type' => 'application/json; charset=utf-8'));
404-
}
405-
406-
407401
function exit_with($body, $status_code=200, $headers=array())
408402
{
409403
if (!isset($headers['content-type']))

0 commit comments

Comments
 (0)