aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-registry/src/downloader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart-registry/src/downloader.rs')
-rw-r--r--crates/mozart-registry/src/downloader.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/mozart-registry/src/downloader.rs b/crates/mozart-registry/src/downloader.rs
index 9a5ed24..8bd99c7 100644
--- a/crates/mozart-registry/src/downloader.rs
+++ b/crates/mozart-registry/src/downloader.rs
@@ -108,7 +108,10 @@ pub async fn download_dist(
}
}
- let response = reqwest::get(url).await?;
+ let client = reqwest::Client::builder()
+ .user_agent(mozart_core::http::user_agent())
+ .build()?;
+ let response = client.get(url).send().await?;
if !response.status().is_success() {
anyhow::bail!(