mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/fastpath'
* origin/fastpath: Add check for optional HTTP::Info status_code. Changing some external testing scripts. Conflicts: scripts/base/protocols/http/main.bro
This commit is contained in:
commit
25fe7e91db
5 changed files with 36 additions and 10 deletions
|
@ -266,8 +266,7 @@ event http_message_done(c: connection, is_orig: bool, stat: http_message_stat) &
|
|||
{
|
||||
# If the response was an informational 1xx, we're still expecting
|
||||
# the real response later, so we'll continue using the same record.
|
||||
if ( c$http?$status_code &&
|
||||
! code_in_range(c$http$status_code, 100, 199) )
|
||||
if ( ! (c$http?$status_code && code_in_range(c$http$status_code, 100, 199)) )
|
||||
{
|
||||
Log::write(HTTP::LOG, c$http);
|
||||
delete c$http_state$pending[c$http_state$current_response];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue