Everywhere: Make session->status() callable
This commit is contained in:
parent
ca8e7ae7f6
commit
6813c13ab3
23 changed files with 100 additions and 74 deletions
|
@ -31,9 +31,9 @@ U0 @slon_webfinger(SlonHttpSession* session)
|
|||
@slon_http_send_json(session, webfinger_object);
|
||||
Json.Delete(webfinger_object);
|
||||
} else {
|
||||
@slon_http_set_status_code(session, 404);
|
||||
session->status(404);
|
||||
}
|
||||
} else {
|
||||
@slon_http_set_status_code(session, 400);
|
||||
session->status(400);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue