chore(dependencies): update to newer h2

This commit is contained in:
Sean McArthur
2019-08-20 16:24:34 -07:00
parent 2d525aaae4
commit fc784913a3
2 changed files with 2 additions and 2 deletions

View File

@@ -272,7 +272,7 @@ impl Body {
}, },
Kind::H2 { Kind::H2 {
recv: ref mut h2, .. recv: ref mut h2, ..
} => match ready!(Pin::new(&mut *h2).poll_next(cx)) { } => match ready!(h2.poll_data(cx)) {
Some(Ok(bytes)) => { Some(Ok(bytes)) => {
let _ = h2.release_capacity().release_capacity(bytes.len()); let _ = h2.release_capacity().release_capacity(bytes.len());
Poll::Ready(Some(Ok(Chunk::from(bytes)))) Poll::Ready(Some(Ok(Chunk::from(bytes))))

View File

@@ -169,7 +169,7 @@ where
} }
// When the service is ready, accepts an incoming request. // When the service is ready, accepts an incoming request.
match ready!(Pin::new(&mut self.conn).poll_next(cx)) { match ready!(self.conn.poll_accept(cx)) {
Some(Ok((req, respond))) => { Some(Ok((req, respond))) => {
trace!("incoming request"); trace!("incoming request");
let content_length = content_length_parse_all(req.headers()); let content_length = content_length_parse_all(req.headers());