feat(server): make Http default its body type to hyper::Chunk

This commit is contained in:
Sean McArthur
2017-02-21 10:03:58 -08:00
parent ee58409578
commit dc97dd77f4
2 changed files with 2 additions and 2 deletions

View File

@@ -97,8 +97,8 @@ fn spawn_hello(handle: &Handle) -> SocketAddr {
let addr = listener.local_addr().unwrap();
let handle2 = handle.clone();
let http = hyper::server::Http::new();
handle.spawn(listener.incoming().for_each(move |(socket, addr)| {
let http = hyper::server::Http::new();
http.bind_connection(&handle2, socket, addr, Hello);
Ok(())
}).then(|_| Ok(())));