mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Tweaking how HTTP requests without URIs are handled.
The change from #49 made it an error to not have a URI. That however then led requests with an URI yet no version to abort as well. Instead, we now check if the token following the method is an "HTTP/" version identifier. If, so accept that the URI is empty (and trigger a weird) but otherwise keep processing. Adding test cases for both HTTP requests without URI and without version.
This commit is contained in:
parent
adb3fab019
commit
642ef5d3c1
12 changed files with 60 additions and 30 deletions
4
testing/btest/scripts/base/protocols/http/no-uri.bro
Normal file
4
testing/btest/scripts/base/protocols/http/no-uri.bro
Normal file
|
@ -0,0 +1,4 @@
|
|||
# @TEST-EXEC: bro -Cr $TRACES/http/no-uri.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff http.log
|
||||
# @TEST-EXEC: btest-diff weird.log
|
||||
|
3
testing/btest/scripts/base/protocols/http/no-version.bro
Normal file
3
testing/btest/scripts/base/protocols/http/no-version.bro
Normal file
|
@ -0,0 +1,3 @@
|
|||
# @TEST-EXEC: bro -Cr $TRACES/http/no-version.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff http.log
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue