]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http2: do not have leading space for response line
authorPhilippe Antoine <pantoine@oisf.net>
Sun, 19 Nov 2023 19:28:28 +0000 (20:28 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 13 Dec 2023 05:59:28 +0000 (06:59 +0100)
Ticket: 6547

rust/src/http2/detect.rs

index 1c595a0cb0f82001d8231b2bda84a09ca1687218..53258b3aa7d8f25a02e8f9cf476f9082034f098b 100644 (file)
@@ -545,7 +545,7 @@ fn http2_tx_get_resp_line(tx: &mut HTTP2Transaction) {
         } else {
             &empty
         };
-    resp_line.extend(b" HTTP/2 ");
+    resp_line.extend(b"HTTP/2 ");
     resp_line.extend(status);
     resp_line.extend(b"\r\n");
     tx.resp_line.extend(resp_line)