enable hyper's no_proto config

This commit is contained in:
Sean McArthur
2017-12-18 18:20:35 -08:00
parent 9cc02ab007
commit 120890f041
2 changed files with 2 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ categories = ["web-programming::http-client"]
[dependencies] [dependencies]
bytes = "0.4" bytes = "0.4"
futures = "0.1.15" futures = "0.1.15"
hyper = "0.11" hyper = "0.11.9"
hyper-tls = "0.1.2" hyper-tls = "0.1.2"
libflate = "0.1.11" libflate = "0.1.11"
log = "0.3" log = "0.3"

View File

@@ -133,6 +133,7 @@ impl ClientBuilder {
let hyper_client = ::hyper::Client::configure() let hyper_client = ::hyper::Client::configure()
.connector(connector) .connector(connector)
.no_proto()
.build(handle); .build(handle);
Ok(Client { Ok(Client {