mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00

Fixed most @load dependency issues in the process. The test is still failing in a "known" way due to hot.conn.bro and scan.bro. Adressess #545
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];
|
|
}
|