diff --git a/Cargo.toml b/Cargo.toml index bb1977e..cbebf8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,16 +47,16 @@ url = "2.1" base64 = "0.10" bytes = "0.4" encoding_rs = "0.8" -futures-core-preview = { version = "=0.3.0-alpha.18" } -futures-util-preview = { version = "=0.3.0-alpha.18" } -http-body = "=0.2.0-alpha.1" -hyper = "=0.13.0-alpha.2" +futures-core-preview = { version = "=0.3.0-alpha.19" } +futures-util-preview = { version = "=0.3.0-alpha.19" } +http-body = "=0.2.0-alpha.3" +hyper = { version = "=0.13.0-alpha.4", default-features = false, features = ["tcp"] } log = "0.4" mime = "0.3.7" mime_guess = "2.0" percent-encoding = "2.1" -tokio = { version = "=0.2.0-alpha.5", default-features = false, features = ["io", "tcp", "timer"] } -tokio-executor = "=0.2.0-alpha.5" +tokio = { version = "=0.2.0-alpha.6", default-features = false, features = ["io", "tcp", "timer"] } +tokio-executor = "=0.2.0-alpha.6" uuid = { version = "0.7", features = ["v4"] } time = "0.1.42" @@ -68,9 +68,9 @@ serde_urlencoded = "0.6.1" # Optional deps... ## default-tls -hyper-tls = { version = "=0.4.0-alpha.2", optional = true } +hyper-tls = { version = "=0.4.0-alpha.4", optional = true } native-tls = { version = "0.2", optional = true } -tokio-tls = { version = "=0.3.0-alpha.5", optional = true } +tokio-tls = { version = "=0.3.0-alpha.6", optional = true } ## rustls-tls #hyper-rustls = { version = "=0.18.0-alpha.1", optional = true } @@ -79,14 +79,14 @@ tokio-tls = { version = "=0.3.0-alpha.5", optional = true } #webpki-roots = { version = "0.17", optional = true } ## blocking -futures-channel-preview = { version = "=0.3.0-alpha.18", optional = true } +futures-channel-preview = { version = "=0.3.0-alpha.19", optional = true } ## cookies cookie_crate = { version = "0.12", package = "cookie", optional = true } cookie_store = { version = "0.9", optional = true } ## gzip -async-compression = { version = "0.1.0-alpha.4", default-features = false, features = ["gzip", "stream"], optional = true } +async-compression = { version = "0.1.0-alpha.5", default-features = false, features = ["gzip", "stream"], optional = true } ## json serde_json = { version = "1.0", optional = true } @@ -99,7 +99,7 @@ serde_json = { version = "1.0", optional = true } [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] env_logger = "0.6" -hyper = { version = "=0.13.0-alpha.2", features = ["unstable-stream"] } +hyper = { version = "=0.13.0-alpha.4", features = ["unstable-stream"] } serde = { version = "1.0", features = ["derive"] } libflate = "0.1" doc-comment = "0.3" diff --git a/src/async_impl/body.rs b/src/async_impl/body.rs index b218b99..0ff7fec 100644 --- a/src/async_impl/body.rs +++ b/src/async_impl/body.rs @@ -329,6 +329,6 @@ impl HttpBody for WrapHyper { } fn size_hint(&self) -> http_body::SizeHint { - self.0.size_hint() + HttpBody::size_hint(&self.0) } }