--- /dev/null
+# Description
+
+Test strip_pseudo_headers transform.
+https://redmine.openinfosecfoundation.org/issues/6546
+
+# PCAP
+
+The pcap comes from test http2-range.
+This pcap has both HTTP1 and HTTP2.
--- /dev/null
+alert http any any -> any any (http.header_names; strip_pseudo_headers; content: "|0d 0a|accept-ranges"; startswith; nocase; sid:1; )
+alert http any any -> any any (http.header_names; content: "|0d 0a|accept-ranges"; startswith; nocase; sid:2; )
+alert http1 any any -> any any (http.header_names; content: "|0d 0a|accept-ranges"; startswith; nocase; sid:3; )
--- /dev/null
+requires:
+ min-version: 8.0.0
+
+pcap: ../http2-range/http2-range.pcap
+
+# disables checksum verification
+args:
+ - -k none --set app-layer.protocols.http2.enabled=true
+
+checks:
+ # transform allows to get 3 more alerts, the ones from HTTP2
+ - filter:
+ count: 5
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ # without transform, we only get the 2 alerts from HTTP1
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ alert.signature_id: 2
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ alert.signature_id: 3