Fix upload tool, keep request active instead of dropping the Response

This commit is contained in:
Tangent 128 2018-04-15 22:07:21 -04:00
parent 8d76bd5c57
commit 8b27dc7d8f
1 changed files with 5 additions and 1 deletions

View File

@ -76,7 +76,11 @@ pub fn run(handle: Handle, args: &ArgMatches) -> Box<Future<Item=(), Error=Webme
request.set_body(request_body_stream);
client.request(request)
.map(|_response| ())
.and_then(|response| {
response.body().for_each(|_chunk| {
Ok(())
})
})
.map_err(WebmetroError::from_err)
}))
}