enable hyper's no_proto config
This commit is contained in:
		| @@ -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" | ||||||
|   | |||||||
| @@ -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 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user