From bbf1eecc52d8dc5426752b4586e57c089a6dfcd3 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 1 Jun 2025 15:03:08 -0500 Subject: [PATCH] Rename the user-agent string, include pkg version It's no longer a test agent, it's the release one. We're including the package version (as specified in Cargo.toml). --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0a9fdea..ed0fed3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,10 @@ async fn main() -> Result<(), gt_tools::Error> { headers.append("Authorization", token.parse().unwrap()); } let client = reqwest::Client::builder() - .user_agent("gt-tools-test-agent") + .user_agent(format!( + "gt-tools-agent-{}", + env!("CARGO_PKG_VERSION") + )) .default_headers(headers) .build()?;