Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ serde = "1.0.97"
serde_json = "1.0.40"
serde_urlencoded = "0.6.1"
url = "2.0.0"
http-client = { version = "5.0.0", default-features = false }
http-client = { version = "6.0.0", default-features = false }
http-types = "2.0.0"
async-std = { version = "1.6.0", default-features = false, features = ["std"] }
async-trait = "0.1.36"
Expand Down
5 changes: 2 additions & 3 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ cfg_if! {
if #[cfg(feature = "curl-client")] {
use http_client::isahc::IsahcClient as DefaultClient;
use once_cell::sync::Lazy;
static GLOBAL_CLIENT: Lazy<http_client::isahc::IsahcClient> =
Lazy::new(http_client::isahc::IsahcClient::new);
static GLOBAL_CLIENT: Lazy<Arc<DefaultClient>> = Lazy::new(|| Arc::new(DefaultClient::new()));
} else if #[cfg(feature = "wasm-client")] {
use http_client::wasm::WasmClient as DefaultClient;
} else if #[cfg(feature = "h1-client")] {
Expand Down Expand Up @@ -125,7 +124,7 @@ impl Client {
pub(crate) fn new_shared() -> Self {
cfg_if! {
if #[cfg(feature = "curl-client")] {
Self::with_http_client(GLOBAL_CLIENT.clone())
Self::with_http_client_internal(GLOBAL_CLIENT.clone())
} else {
Self::new()
}
Expand Down