diff --git a/Cargo.lock b/Cargo.lock index f31e58cede8..9b2cd3bd379 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -970,6 +970,7 @@ dependencies = [ "github-meta", "googletest", "hex", + "http 0.2.12", "http 1.1.0", "http-body-util", "hyper 1.3.1", diff --git a/Cargo.toml b/Cargo.toml index 48e531cdadb..2d1a112e1f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -92,6 +92,7 @@ minijinja = "=1.0.20" mockall = "=0.12.1" oauth2 = { version = "=4.4.2", default-features = false, features = ["reqwest"] } object_store = { version = "=0.9.1", features = ["aws"] } +object_store_http = { package = "http", version = "=0.2.12" } once_cell = "=1.19.0" p256 = "=0.13.2" parking_lot = "=0.12.1" diff --git a/src/storage.rs b/src/storage.rs index 983fecbe704..75c5de0d286 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -8,8 +8,8 @@ use object_store::memory::InMemory; use object_store::path::Path; use object_store::prefix::PrefixStore; use object_store::{ClientOptions, ObjectStore, Result}; -use reqwest::header::CACHE_CONTROL; -use reqwest::header::{HeaderMap, HeaderValue}; +use object_store_http::header::CACHE_CONTROL; +use object_store_http::header::{HeaderMap, HeaderValue}; use secrecy::{ExposeSecret, SecretString}; use std::fs; use std::path::PathBuf;