Added mime types to http.log

This commit is contained in:
Seth Hall 2013-07-12 16:06:40 -04:00
parent 1a60fae41c
commit b14f5a853e
2 changed files with 47 additions and 26 deletions

View file

@ -6,14 +6,6 @@
module HTTP;
export {
redef record Info += {
## An ordered vector of file unique IDs seen sent by the originator (client).
orig_fuids: vector of string &log &default=string_vec();
## An ordered vector of file unique IDs seen sent by the responder (server).
resp_fuids: vector of string &log &default=string_vec();
};
## Default file handle provider for HTTP.
global get_file_handle: function(c: connection, is_orig: bool): string;
}
@ -39,14 +31,3 @@ event bro_init() &priority=5
{
Files::register_protocol(Analyzer::ANALYZER_HTTP, HTTP::get_file_handle);
}
event file_over_new_connection(f: fa_file, c: connection, is_orig: bool) &priority=5
{
if ( c?$http )
{
if ( f$is_orig )
c$http$orig_fuids[|c$http$orig_fuids|] = f$id;
else
c$http$resp_fuids[|c$http$resp_fuids|] = f$id;
}
}