diff options
author | Teddy Wing | 2020-06-28 19:56:45 +0200 |
---|---|---|
committer | Teddy Wing | 2020-06-28 19:56:45 +0200 |
commit | 13fd1f2619df452dba2ab6ca8340de32c996d268 (patch) | |
tree | 8c793fae994b535339b6031d3fe0f9d31c438a86 /src/lib.rs | |
parent | 8ac4bfa0c941acefedf0d384685e8b422fc4b426 (diff) | |
download | fastcgi-conduit-13fd1f2619df452dba2ab6ca8340de32c996d268.tar.bz2 |
Server::start: Implement `conduit::Body::File` response
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(), }; }); |