diff options
Diffstat (limited to 'src/tokenauth.rs')
-rw-r--r-- | src/tokenauth.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tokenauth.rs b/src/tokenauth.rs index 244a045..414454a 100644 --- a/src/tokenauth.rs +++ b/src/tokenauth.rs @@ -173,7 +173,7 @@ where let Extension(TokenEndpoint(token_endpoint)): Extension<TokenEndpoint> = Extension::from_request(req).await.unwrap(); - let Extension(http): Extension<reqwest::Client> = + let Extension(http): Extension<reqwest_middleware::ClientWithMiddleware> = Extension::from_request(req).await.unwrap(); match http @@ -253,8 +253,8 @@ mod tests { } #[inline] - fn get_http_client() -> reqwest::Client { - reqwest::Client::new() + fn get_http_client() -> reqwest_middleware::ClientWithMiddleware { + reqwest_middleware::ClientWithMiddleware::new() } fn request<A: Into<Option<&'static str>>>( |