mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add version to HTTP::Info
This commit is contained in:
parent
374e61ee20
commit
ada2b0088b
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,8 @@ export {
|
||||||
## misspelled like the standard declares, but the name used here
|
## misspelled like the standard declares, but the name used here
|
||||||
## is "referrer" spelled correctly.
|
## is "referrer" spelled correctly.
|
||||||
referrer: string &log &optional;
|
referrer: string &log &optional;
|
||||||
|
## Value of the version portion of the request
|
||||||
|
version: string &log &optional;
|
||||||
## Value of the User-Agent header from the client.
|
## Value of the User-Agent header from the client.
|
||||||
user_agent: string &log &optional;
|
user_agent: string &log &optional;
|
||||||
## Actual uncompressed content size of the data transferred from
|
## Actual uncompressed content size of the data transferred from
|
||||||
|
@ -222,6 +224,8 @@ event http_reply(c: connection, version: string, code: count, reason: string) &p
|
||||||
|
|
||||||
c$http$status_code = code;
|
c$http$status_code = code;
|
||||||
c$http$status_msg = reason;
|
c$http$status_msg = reason;
|
||||||
|
c$http$version = version;
|
||||||
|
|
||||||
if ( code_in_range(code, 100, 199) )
|
if ( code_in_range(code, 100, 199) )
|
||||||
{
|
{
|
||||||
c$http$info_code = code;
|
c$http$info_code = code;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue