forked from tilera/webapi
Returning status code also as HTTP header
This commit is contained in:
parent
1b52881fb5
commit
d2c0ffca8b
|
@ -179,10 +179,9 @@ if ($method == "GET") {
|
|||
case "/admin":
|
||||
admin(file_get_contents("php://input"));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
header('Content-Type: application/json');
|
||||
http_response_code($obj->status);
|
||||
echo stripslashes(json_encode($obj, JSON_UNESCAPED_UNICODE));
|
||||
|
||||
function endpoints() {
|
||||
|
|
Loading…
Reference in New Issue