Bug 36863: Deal with non-listed methods in CSRF plack middleware

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-05-15 14:47:30 +02:00 committed by Katrin Fischer
parent c4be7134c4
commit e79d407340
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -77,6 +77,9 @@ sub call {
}
}
}
elsif ( !exists $stateless_methods{$request_method} && !exists $stateful_methods{$request_method} ) {
$error = sprintf "unknown or unsupported method %s", $request_method;
}
if ($error) {