mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48: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
|
@ -53,9 +53,9 @@ HTTP_Entity::HTTP_Entity(HTTP_Message *arg_message, MIME_Entity* parent_entity,
|
|||
offset = 0;
|
||||
instance_length = -1; // unspecified
|
||||
send_size = true;
|
||||
// MIME_Entity already set want_all_headers depending on mime_all_headers
|
||||
if ( ! want_all_headers )
|
||||
want_all_headers = (bool)http_all_headers;
|
||||
// Always override what MIME_Entity set for want_all_headers: HTTP doesn't
|
||||
// raise the generic MIME events, but rather it's own specific ones.
|
||||
want_all_headers = (bool)http_all_headers;
|
||||
}
|
||||
|
||||
void HTTP_Entity::EndOfData()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue