about summary refs log tree commit diff
path: root/tvix/store/src/pathinfoservice/nix_http.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/store/src/pathinfoservice/nix_http.rs')
-rw-r--r--tvix/store/src/pathinfoservice/nix_http.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/tvix/store/src/pathinfoservice/nix_http.rs b/tvix/store/src/pathinfoservice/nix_http.rs
index e9b83dcf3551..a9e3e4b361f8 100644
--- a/tvix/store/src/pathinfoservice/nix_http.rs
+++ b/tvix/store/src/pathinfoservice/nix_http.rs
@@ -54,9 +54,14 @@ impl<BS, DS> NixHTTPPathInfoService<BS, DS> {
         Self {
             instance_name,
             base_url,
-            http_client: reqwest_middleware::ClientBuilder::new(reqwest::Client::new())
-                .with(tvix_tracing::propagate::reqwest::tracing_middleware())
-                .build(),
+            http_client: reqwest_middleware::ClientBuilder::new(
+                reqwest::Client::builder()
+                    .user_agent(crate::USER_AGENT)
+                    .build()
+                    .expect("Client::new()"),
+            )
+            .with(tvix_tracing::propagate::reqwest::tracing_middleware())
+            .build(),
             blob_service,
             directory_service,