1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 02:19:22 +02:00

update tests

This commit is contained in:
Nikolay Kim
2018-03-08 18:19:46 -08:00
parent ebdc983dfe
commit f88f1c65b6
2 changed files with 9 additions and 4 deletions

View File

@ -132,6 +132,11 @@ impl Frame {
pl.drop_payload(idx);
// get body
if length == 0 {
return Ok(Async::Ready(Some(Frame {
finished, rsv1, rsv2, rsv3, opcode, payload: Binary::from("") })));
}
let data = match pl.readexactly(length)? {
Async::Ready(Some(buf)) => buf,
Async::Ready(None) => return Ok(Async::Ready(None)),