mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(admin): treat 204 as successful (#26)
This commit is contained in:
1 parent
11ec2e63b3
commit
9fdc374443
1 file changed
+1
@@ -104,6 +104,7 @@ pub fn admin_post_with_audit(
|
||||
|
||||
case httpc.send(req) {
|
||||
Ok(resp) if resp.status == 200 -> Ok(Nil)
|
||||
Ok(resp) if resp.status == 204 -> Ok(Nil)
|
||||
Ok(resp) if resp.status == 401 -> Error(Unauthorized)
|
||||
Ok(resp) if resp.status == 403 -> {
|
||||
let message_decoder = {
|
||||
|
||||
Reference in new issue
Block a user