diff --git a/src/utils/reqwest_resume/mod.rs b/src/utils/reqwest_resume/mod.rs index 66d27f2f8d87..7d383831fc35 100644 --- a/src/utils/reqwest_resume/mod.rs +++ b/src/utils/reqwest_resume/mod.rs @@ -10,6 +10,7 @@ //! Some modifications have been done to update the code regarding `tokio`, //! replace the `hyperx` dependency with `hyper` and add two unit tests. +use crate::utils::net::global_http_client; use bytes::Bytes; use futures::{ready, FutureExt as _, Stream, TryFutureExt as _}; use std::{ @@ -36,11 +37,9 @@ impl ClientExt for reqwest::Client { #[derive(Debug)] pub struct Client(reqwest::Client); impl Client { - /// Constructs a new `Client`. - /// - /// See [`reqwest::Client::new()`]. + /// Constructs a new `Client` using the global Forest HTTP client. pub fn new() -> Self { - Self(reqwest::Client::new()) + Self(global_http_client()) } /// Convenience method to make a `GET` request to a URL. ///