feat: enhance HTTP/2 support by ensuring Host header is set and adding multiplexed request tests

This commit is contained in:
2026-02-20 18:30:57 +00:00
parent 9521f2e044
commit d4739045cd
3 changed files with 75 additions and 69 deletions

View File

@@ -196,6 +196,7 @@ pub fn is_http(data: &[u8]) -> bool {
b"PATC",
b"OPTI",
b"CONN",
b"PRI ", // HTTP/2 connection preface
];
starts.iter().any(|s| data.starts_with(s))
}