From 13fd1f2619df452dba2ab6ca8340de32c996d268 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 28 Jun 2020 19:56:45 +0200 Subject: Server::start: Implement `conduit::Body::File` response --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 558460f..78be10d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -271,7 +271,7 @@ impl Server { match body { conduit::Body::Static(slice) => stdout.write(slice).map(|_| ()).unwrap(), conduit::Body::Owned(vec) => stdout.write(&vec).map(|_| ()).unwrap(), - conduit::Body::File(file) => (), + conduit::Body::File(mut file) => io::copy(&mut file, &mut stdout).map(|_| ()).unwrap(), }; }); -- cgit v1.2.3