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).
This commit is contained in:
2025-06-01 15:03:08 -05:00
parent e0c21fceaf
commit bbf1eecc52

View File

@@ -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()?;