Fix upload tool, keep request active instead of dropping the Response
This commit is contained in:
parent
8d76bd5c57
commit
8b27dc7d8f
1 changed files with 5 additions and 1 deletions
|
@ -76,7 +76,11 @@ pub fn run(handle: Handle, args: &ArgMatches) -> Box<Future<Item=(), Error=Webme
|
||||||
request.set_body(request_body_stream);
|
request.set_body(request_body_stream);
|
||||||
|
|
||||||
client.request(request)
|
client.request(request)
|
||||||
.map(|_response| ())
|
.and_then(|response| {
|
||||||
|
response.body().for_each(|_chunk| {
|
||||||
|
Ok(())
|
||||||
|
})
|
||||||
|
})
|
||||||
.map_err(WebmetroError::from_err)
|
.map_err(WebmetroError::from_err)
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue