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:
@@ -19,7 +19,10 @@ async fn main() -> Result<(), gt_tools::Error> {
|
|||||||
headers.append("Authorization", token.parse().unwrap());
|
headers.append("Authorization", token.parse().unwrap());
|
||||||
}
|
}
|
||||||
let client = reqwest::Client::builder()
|
let client = reqwest::Client::builder()
|
||||||
.user_agent("gt-tools-test-agent")
|
.user_agent(format!(
|
||||||
|
"gt-tools-agent-{}",
|
||||||
|
env!("CARGO_PKG_VERSION")
|
||||||
|
))
|
||||||
.default_headers(headers)
|
.default_headers(headers)
|
||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user