mirror of
https://git.checksum.fail/alec/slon.git
synced 2025-12-08 12:09:55 +02:00
Everywhere: Make session->status() callable
This commit is contained in:
@@ -45,7 +45,7 @@ U0 @slon_api_v1_statuses_delete(SlonHttpSession* session)
|
||||
@slon_free(session, path);
|
||||
@slon_http_send_json(session, SLON_EMPTY_JSON_OBJECT);
|
||||
} else {
|
||||
@slon_http_set_status_code(session, 401);
|
||||
session->status(401);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,6 +141,6 @@ U0 @slon_api_v1_statuses_post(SlonHttpSession* session)
|
||||
@slon_free(session, id);
|
||||
@slon_free(session, created_at);
|
||||
} else {
|
||||
@slon_http_set_status_code(session, 401);
|
||||
session->status(401);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user