mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
update uses of "when" in base scripts to include captures
This commit is contained in:
parent
f895008c34
commit
98cd3f2213
15 changed files with 21 additions and 21 deletions
|
@ -98,7 +98,7 @@ function request(req: Request): ActiveHTTP::Response
|
|||
local cmd = request2curl(req, bodyfile, headersfile);
|
||||
local stdin_data = req?$client_data ? req$client_data : "";
|
||||
|
||||
return when ( local result = Exec::run([$cmd=cmd, $stdin=stdin_data, $read_files=set(bodyfile, headersfile)]) )
|
||||
return when [req, resp, cmd, stdin_data, bodyfile, headersfile] ( local result = Exec::run([$cmd=cmd, $stdin=stdin_data, $read_files=set(bodyfile, headersfile)]) )
|
||||
{
|
||||
# If there is no response line then nothing else will work either.
|
||||
if ( ! (result?$files && headersfile in result$files) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue