mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
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:
parent
bc06768a67
commit
c91b12863e
7 changed files with 112 additions and 4 deletions
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue