Add tests for {http,mime}_all_headers events

And remove unnecessary check for mime_all_headers in HTTP entities
(they ony raise the http_all_headers event, never mime_all_headers).
This commit is contained in:
Jon Siwek 2019-08-13 11:25:20 -07:00
parent bc06768a67
commit c91b12863e
7 changed files with 112 additions and 4 deletions

View file

@ -0,0 +1,16 @@
# @TEST-EXEC: zeek -b -r $TRACES/http/get.trace %INPUT >out
# @TEST-EXEC: btest-diff out
@load base/protocols/http
event http_all_headers(c: connection, is_orig: bool, hlist: mime_header_list)
{
print "http_all_headers";
print hlist;
}
event mime_all_headers(c: connection, hlist: mime_header_list)
{
print "mime_all_headers";
print hlist;
}