mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

- Fixing the parts of the `make restdoc` and `make doc` process that were broken by the last Bro script re-organization - Generated documentation for Bro scripts derived from BiFs now use the original BiF source file as the "original source file" link - Renaming of the internal POLICYDEST definition and other misc places that refer to "policy" scripts; that terminology doesn't make total sense now - Added a documentation blacklist reminder test that will fail if there's scripts that are blacklisted from being documentated because they're still in progress - Some minor Bro script changes to fix small @load dependency errors Addresses #543
16 lines
332 B
Text
16 lines
332 B
Text
@load ./base
|
|
|
|
module MIME;
|
|
|
|
export {
|
|
redef record Info += {
|
|
## Sniffed MIME type for the transfer.
|
|
mime_type: string &log &optional;
|
|
};
|
|
}
|
|
|
|
event mime_segment_data(c: connection, length: count, data: string) &priority=7
|
|
{
|
|
if ( c$mime$content_len == 0 )
|
|
c$mime$mime_type = split1(identify_data(data, T), /;/)[1];
|
|
}
|