Fix deprecated hyper client builder methods
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user