Skip to content

Commit

Permalink
perf(http2): improve Body::is_end_stream detection for http2
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Apr 18, 2018
1 parent 1328412 commit 4ea5472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ impl Payload for Body {
fn is_end_stream(&self) -> bool {
match self.kind {
Kind::Chan { .. } => false,
Kind::H2(..) => false,
Kind::H2(ref h2) => h2.is_end_stream(),
Kind::Wrapped(..) => false,
Kind::Once(ref val) => val.is_none(),
Kind::Empty => true
Expand Down

0 comments on commit 4ea5472

Please sign in to comment.