mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Merge remote-tracking branch 'origin/topic/struck/BIT-1277'
* origin/topic/struck/BIT-1277: [ADD] Added the feature to return 0 content to the python http test server and added functionality for post requests [ADD] added baseline for the new active-http test and added a test to check for the content-length 0 fix. [ADD] added baseline for the new exec test and added a test to check for the empty files fix. [FIX] exec should write an empty string when file is empty instead of the filename [FIX] Add files to result table even if the files are empty BIT-1277 #merged
This commit is contained in:
commit
4216a5eb1c
9 changed files with 76 additions and 14 deletions
|
@ -106,6 +106,15 @@ event Input::end_of_data(name: string, source:string)
|
|||
|
||||
local track_file = parts[2];
|
||||
|
||||
# If the file is empty, still add it to the result$files table. This is needed
|
||||
# because it is expected that the file was read even if it was empty.
|
||||
local result = results[name];
|
||||
if ( ! result?$files )
|
||||
result$files = table();
|
||||
|
||||
if ( track_file !in result$files )
|
||||
result$files[track_file] = vector();
|
||||
|
||||
Input::remove(name);
|
||||
|
||||
if ( name !in pending_files )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue