aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/diagnose.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands/diagnose.rs')
-rw-r--r--crates/mozart/src/commands/diagnose.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/mozart/src/commands/diagnose.rs b/crates/mozart/src/commands/diagnose.rs
index da37137..dc1ea85 100644
--- a/crates/mozart/src/commands/diagnose.rs
+++ b/crates/mozart/src/commands/diagnose.rs
@@ -83,7 +83,7 @@ async fn check_http_connectivity(url: &str) -> CheckResult {
let client = match reqwest::Client::builder()
.timeout(std::time::Duration::from_secs(10))
- .user_agent(concat!("mozart/", env!("CARGO_PKG_VERSION")))
+ .user_agent(mozart_core::http::user_agent())
.build()
{
Ok(c) => c,
@@ -111,7 +111,7 @@ async fn check_github_api() -> CheckResult {
let client = match reqwest::Client::builder()
.timeout(std::time::Duration::from_secs(10))
- .user_agent(concat!("mozart/", env!("CARGO_PKG_VERSION")))
+ .user_agent(mozart_core::http::user_agent())
.build()
{
Ok(c) => c,