diff --git a/tvix/glue/src/fetchers/mod.rs b/tvix/glue/src/fetchers/mod.rs index 8dd4fe843..035e9f11a 100644 --- a/tvix/glue/src/fetchers/mod.rs +++ b/tvix/glue/src/fetchers/mod.rs @@ -178,6 +178,8 @@ pub struct Fetcher { nar_calculation_service: NS, } +const USER_AGENT: &str = concat!("Tvix/", env!("CARGO_PKG_VERSION")); + impl Fetcher { pub fn new( blob_service: BS, @@ -186,7 +188,10 @@ impl Fetcher { nar_calculation_service: NS, ) -> Self { Self { - http_client: reqwest::Client::new(), + http_client: reqwest::Client::builder() + .user_agent(USER_AGENT) + .build() + .expect("Client::new()"), blob_service, directory_service, path_info_service,