1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 00:21:08 +01:00

fix h2 compatibility

This commit is contained in:
Nikolay Kim 2018-07-11 13:25:07 +06:00
parent 6b9a193aa8
commit 7507412a1d

View File

@ -67,7 +67,7 @@ where
flags: Flags::empty(),
tasks: VecDeque::new(),
state: State::Handshake(server::handshake(IoWrapper {
unread: Some(buf),
unread: if buf.is_empty() { None } else { Some(buf) },
inner: io,
})),
keepalive_timer: None,