Skip to content

Commit

Permalink
add odoh config request accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Nov 20, 2023
1 parent 735c750 commit 7eeea4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proxy-lib/src/doh_client/odoh_config_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7eeea4a

Please sign in to comment.