mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 09:42:40 +01:00
test case for broken transfer encoding
This commit is contained in:
parent
ae10a89014
commit
98931a8623
@ -1201,6 +1201,18 @@ mod tests {
|
|||||||
} else {
|
} else {
|
||||||
panic!("Error");
|
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]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user