fix(lib): fix no_proto dispatcher to flush queue before polling more body

This commit is contained in:
Sean McArthur
2017-11-14 14:56:13 -08:00
parent 3f62bde7b3
commit 121b5eef19
2 changed files with 4 additions and 2 deletions

View File

@@ -306,7 +306,7 @@ where I: AsyncRead + AsyncWrite,
}
}
fn has_queued_body(&self) -> bool {
pub fn has_queued_body(&self) -> bool {
match self.state.writing {
Writing::Body(_, Some(_)) => true,
_ => false,