We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5bf075 commit 353ef8eCopy full SHA for 353ef8e
1 file changed
api/src/core/Tool.php
@@ -50,7 +50,7 @@ public static function endWithJson($_payload, $code = 200) {
50
// setStatus() on $app->response (e.g. 206 for partial range, 400 for
51
// out-of-range start). Respect that status instead of always using 200.
52
$effectiveCode = ($_payload instanceof \API\Core\PaginatedCollection)
53
- ? $app->response->getStatus()
+ ? $app->response->status()
54
: $code;
55
$app->halt($effectiveCode, json_encode($payload));
56
}
0 commit comments