diff --git a/actix-http/src/h2/dispatcher.rs b/actix-http/src/h2/dispatcher.rs index 59a274f34..367a2bc02 100644 --- a/actix-http/src/h2/dispatcher.rs +++ b/actix-http/src/h2/dispatcher.rs @@ -80,7 +80,7 @@ where let this = self.get_mut(); while let Some((req, tx)) = - ready!(Pin::new(&mut this.connection).poll_accept(cx)).transpose()? + ready!(Pin::new(&mut this.connection).poll_accept(cx)?) { let (parts, body) = req.into_parts(); let pl = crate::h2::Payload::new(body);