feat: Set user agent
Committed / committed (pull_request) Successful in 50s
CI / cargo shear (pull_request) Successful in 6m16s
CI / prek (pull_request) Successful in 6m21s
CI / cargo shear (push) Successful in 7m0s
CI / prek (push) Successful in 8m36s
Release-plz / Release-plz Release (push) Successful in 7m19s
Release-plz / Release-plz PR (push) Successful in 8m0s

This commit was merged in pull request #15.
This commit is contained in:
2026-04-06 05:59:26 +02:00
parent 8059c25767
commit 9c681c4b03
+9 -1
View File
@@ -11,7 +11,15 @@ where
let path = get_talos_path().join("schematics").join(name);
let content = std::fs::read_to_string(path).unwrap().trim().to_owned();
let client = reqwest::blocking::Client::new();
let client = reqwest::blocking::ClientBuilder::new()
.user_agent(format!(
"{}/{}",
std::env!("CARGO_PKG_NAME"),
std::env!("CARGO_PKG_VERSION")
))
.build()
.unwrap();
let res = client
.post("https://factory.talos.dev/schematics")
.body(content)