mirror of
https://github.com/fafhrd91/actix-web
synced 2025-02-17 10:13:30 +01:00
fix h2 compatibility
This commit is contained in:
parent
6b9a193aa8
commit
7507412a1d
@ -67,7 +67,7 @@ where
|
|||||||
flags: Flags::empty(),
|
flags: Flags::empty(),
|
||||||
tasks: VecDeque::new(),
|
tasks: VecDeque::new(),
|
||||||
state: State::Handshake(server::handshake(IoWrapper {
|
state: State::Handshake(server::handshake(IoWrapper {
|
||||||
unread: Some(buf),
|
unread: if buf.is_empty() { None } else { Some(buf) },
|
||||||
inner: io,
|
inner: io,
|
||||||
})),
|
})),
|
||||||
keepalive_timer: None,
|
keepalive_timer: None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user