--- /dev/null
+# Test Purpose
+
+Test `app-layer-protocol` keyword with protocol change
+
+## PCAP
+
+PCAP reused from http2-keywords2
+
+## Redmine ticket
+
+https://redmine.openinfosecfoundation.org/issues/4921
--- /dev/null
+alert tcp any any -> any any (msg:"HTTP1 to HTTP2"; app-layer-protocol:http1,original; prefilter; app-layer-protocol:http2,final; sid:1; )
--- /dev/null
+pcap: ../http2-keywords2/input.pcap
+
+requires:
+ min-version: 8
+
+# disables checksum verification
+args:
+ - -k none --set stream.midstream=true
+
+checks:
+- filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1