diff --git a/src/server/h1.rs b/src/server/h1.rs index a6affe4cc..b6629a1f5 100644 --- a/src/server/h1.rs +++ b/src/server/h1.rs @@ -1201,6 +1201,18 @@ mod tests { } else { panic!("Error"); } + + // type in chunked + let mut buf = Buffer::new( + "GET /test HTTP/1.1\r\n\ + transfer-encoding: chnked\r\n\r\n"); + let req = parse_ready!(&mut buf); + + if let Ok(val) = req.chunked() { + assert!(!val); + } else { + panic!("Error"); + } } #[test]