api: Require POST for /api/push
This commit is contained in:
committed by
Martin Weinelt
parent
b1a0501520
commit
916531dc9c
@ -272,7 +272,7 @@ sub requireAdmin {
|
||||
|
||||
sub requirePost {
|
||||
my ($c) = @_;
|
||||
error($c, "Request must be POSTed.") if $c->request->method ne "POST";
|
||||
error($c, "Request must be POSTed.", 405) if $c->request->method ne "POST";
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user