diff --git a/Cargo.toml b/Cargo.toml index 23b85bf..fb59c33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ categories = ["web-programming::http-client"] [dependencies] bytes = "0.4" -futures = "0.1.14" +futures = "0.1.15" hyper = "0.11" hyper-tls = "0.1.2" libflate = "0.1.11" diff --git a/src/client.rs b/src/client.rs index d357832..87e45bb 100644 --- a/src/client.rs +++ b/src/client.rs @@ -387,7 +387,11 @@ impl ClientHandle { let (tx, rx) = oneshot::channel(); let (req, body) = request::async(req); let url = req.url().clone(); - self.inner.tx.as_ref().expect("core thread exited early").send((req, tx)).expect("core thread panicked"); + self.inner.tx + .as_ref() + .expect("core thread exited early") + .unbounded_send((req, tx)) + .expect("core thread panicked"); if let Some(body) = body { try_!(body.send(), &url);