Sanity-check the method passed into ActiveHTTP.

Reported by Pierre Gaulon.
This commit is contained in:
Robin Sommer 2021-09-17 12:23:33 +02:00
parent ce143d78b0
commit 47c35190a4
3 changed files with 18 additions and 6 deletions

View file

@ -17,7 +17,7 @@ function check_exit_condition()
{
c += 1;
if ( c == 2 )
if ( c == 3 )
terminate();
}
@ -39,4 +39,5 @@ event zeek_init()
{
test_request("test1", [$url="127.0.0.1:32123"]);
test_request("test2", [$url="127.0.0.1:32123/empty", $method="POST"]);
test_request("test3", [$url="127.0.0.1:32123", $method="POST 123"]); # will be rejected and not execute request
}