Everywhere: Make session->status() callable
This commit is contained in:
parent
ca8e7ae7f6
commit
6813c13ab3
23 changed files with 100 additions and 74 deletions
|
@ -122,9 +122,9 @@ U0 @slon_api_v1_timelines_get(SlonHttpSession* session)
|
|||
goto slon_api_v1_timelines_get_return;
|
||||
}
|
||||
|
||||
@slon_http_set_status_code(session, 404);
|
||||
session->status(404);
|
||||
} else {
|
||||
@slon_http_set_status_code(session, 401);
|
||||
session->status(401);
|
||||
return;
|
||||
}
|
||||
slon_api_v1_timelines_get_return:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue