diff --git a/proxy-lib/src/doh_client/odoh_config_store.rs b/proxy-lib/src/doh_client/odoh_config_store.rs index fb2bb4c..86a0f3a 100644 --- a/proxy-lib/src/doh_client/odoh_config_store.rs +++ b/proxy-lib/src/doh_client/odoh_config_store.rs @@ -55,7 +55,11 @@ impl ODoHConfigStore { destination.set_path(ODOH_CONFIG_PATH); let lock = self.http_client.read().await; debug!("Fetching ODoH config from {}", destination); - lock.get(destination).send().await + lock + .get(destination) + .header(reqwest::header::ACCEPT, "application/binary") + .send() + .await }); let joined = futures::future::join_all(futures); let update_futures = joined.await.into_iter().zip(inner).map(|(res, current)| async move {