mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Sanity-check the method passed into ActiveHTTP.
Reported by Pierre Gaulon.
This commit is contained in:
parent
ce143d78b0
commit
47c35190a4
3 changed files with 18 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue