Ticket: 6643
If the request is junk, and the response is valid HTTP/1.1,
we should handle the response as HTTP/1.1, not HTTP 0.9
--- /dev/null
+# Test Description
+
+Test that we parse junk request and HTTP response not as HTTP/0.9
+
+## PCAP
+
+TLPW1 163.44.181.249_80-10.6.29.102_49190-11ff4.pcap
+
+## Related issues
+
+https://redmine.openinfosecfoundation.org/issues/6643
--- /dev/null
+# should match
+alert http any any -> any any (http.response_line; content:"HTTP/1.1 400"; sid:1;)
+# should not match as it is the response line, not yet the response body
+alert http any any -> any any (file.data; content:"HTTP/1.1 400"; sid:2;)
--- /dev/null
+args:
+ - -k none
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: fileinfo
+ fileinfo.size: 166
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 2