Fix deprecated hyper client builder methods

This commit is contained in:
Sean McArthur
2020-03-03 15:47:49 -08:00
parent 526afe9d86
commit 2f875255e1
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ encoding_rs = "0.8"
futures-core = { version = "0.3.0", default-features = false }
futures-util = { version = "0.3.0", default-features = false }
http-body = "0.3.0"
hyper = { version = "0.13", default-features = false, features = ["tcp"] }
hyper = { version = "0.13.3", default-features = false, features = ["tcp"] }
lazy_static = "1.4"
log = "0.4"
mime = "0.3.7"

View File

@@ -300,7 +300,7 @@ impl ClientBuilder {
builder.http2_initial_connection_window_size(http2_initial_connection_window_size);
}
builder.max_idle_per_host(config.max_idle_per_host);
builder.pool_max_idle_per_host(config.max_idle_per_host);
if config.http1_title_case_headers {
builder.http1_title_case_headers(true);