fix streaming body from wrongly returning 'closed connection' error

This commit is contained in:
Sean McArthur
2018-09-19 16:38:33 -07:00
parent 1a513efe39
commit 15857a11a4
4 changed files with 33 additions and 14 deletions

View File

@@ -438,8 +438,7 @@ impl ClientHandle {
// work is Future<(), ()>, and our closure will never return Err
rt.spawn(work)
.run()
rt.block_on(work)
.expect("runtime unexpected error");
}));