From 1c410ad8c7328fd453200f34105e1346f20c7548 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 27 Jun 2022 04:20:36 +0100 Subject: [PATCH] fix test --- actix-http/src/h1/decoder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]