diff --git a/actix-http/src/h1/decoder.rs b/actix-http/src/h1/decoder.rs index 27bec1a0f..68f5f823a 100644 --- a/actix-http/src/h1/decoder.rs +++ b/actix-http/src/h1/decoder.rs @@ -1031,7 +1031,7 @@ mod tests { #[test] fn hrs_te_http10() { - // in HTTP/1.0 transfer encoding is ignored so body is read as raw chunked payload + // in HTTP/1.0 transfer encoding is ignored and must therefore contain a CL header let mut buf = BytesMut::from( "GET / HTTP/1.0\r\n\ @@ -1044,7 +1044,7 @@ mod tests { ", ); - parse_ready!(&mut buf); + expect_parse_err!(&mut buf); } #[test]