fix(http): fix encoding when buffer is full

This commit is contained in:
Sean McArthur
2017-07-17 11:19:32 -07:00
parent d6da3f7b40
commit fc5b9cce31
3 changed files with 12 additions and 2 deletions

View File

@@ -803,6 +803,8 @@ mod tests {
#[test]
fn test_conn_body_write_length() {
extern crate pretty_env_logger;
let _ = pretty_env_logger::init();
let _: Result<(), ()> = future::lazy(|| {
let io = AsyncIo::new_buf(vec![], 0);
let mut conn = Conn::<_, http::Chunk, ServerTransaction>::new(io, Default::default());