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:
parent
c4be7134c4
commit
e79d407340
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue