mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
GH-854: provide access to original HTTP/MIME header names
The "http_header" event now has an "original_name" parameter that allows access to the original header name (the "name" parameter reamins the same as before: it's the uppercased header name). The "mime_header_rec" record type now also includes an "original_name" field to similarly provide access to original header name in the following events: "http_all_headers", "mime_one_header", and "mime_all_headers".
This commit is contained in:
parent
8843f69002
commit
5032993b94
8 changed files with 148 additions and 142 deletions
|
@ -2076,7 +2076,8 @@ global login_timeouts: set[string] &redef;
|
|||
##
|
||||
## .. zeek:see:: mime_header_list http_all_headers mime_all_headers mime_one_header
|
||||
type mime_header_rec: record {
|
||||
name: string; ##< The header name.
|
||||
original_name: string; ##< The header name (unaltered).
|
||||
name: string; ##< The header name (converted to all upper-case).
|
||||
value: string; ##< The header value.
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue