Skip to content

Commit 353ef8e

Browse files
committed
slim api
1 parent d5bf075 commit 353ef8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/core/Tool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function endWithJson($_payload, $code = 200) {
5050
// setStatus() on $app->response (e.g. 206 for partial range, 400 for
5151
// out-of-range start). Respect that status instead of always using 200.
5252
$effectiveCode = ($_payload instanceof \API\Core\PaginatedCollection)
53-
? $app->response->getStatus()
53+
? $app->response->status()
5454
: $code;
5555
$app->halt($effectiveCode, json_encode($payload));
5656
}

0 commit comments

Comments
 (0)