mirror of
https://github.com/actix/actix-web.git
synced 2024-12-30 20:10:38 +00:00
test case for broken transfer encoding
This commit is contained in:
parent
ae10a89014
commit
98931a8623
1 changed files with 12 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue