From ac22a9d4d98a7a124f0234481fbfbad2a28343b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Thu, 12 Oct 2023 13:55:53 +0100 Subject: [PATCH] added default user-agent to http-api-client --- common/http-api-client/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/common/http-api-client/src/lib.rs b/common/http-api-client/src/lib.rs index 8bb81c2450..2d816cc142 100644 --- a/common/http-api-client/src/lib.rs +++ b/common/http-api-client/src/lib.rs @@ -73,6 +73,7 @@ impl Client { #[cfg(not(target_arch = "wasm32"))] let reqwest_client = reqwest::ClientBuilder::new() .timeout(timeout.unwrap_or(DEFAULT_TIMEOUT)) + .user_agent(format!("nym-http-api-client/{}", env!("CARGO_PKG_VERSION"))) .build() .expect("Client::new()");