From d52ae4bd480b3eaa58b6bb0cf53dc5301d222cc1 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Fri, 5 Jan 2024 13:07:55 -0500 Subject: [PATCH] fix: removed typo from http client user agent. (#3134) --- crates/typst-cli/src/download.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-cli/src/download.rs b/crates/typst-cli/src/download.rs index 0fff7b85e..a5062fd3f 100644 --- a/crates/typst-cli/src/download.rs +++ b/crates/typst-cli/src/download.rs @@ -45,7 +45,7 @@ pub fn download_with_progress(url: &str) -> Result, ureq::Error> { #[allow(clippy::result_large_err)] pub fn download(url: &str) -> Result { let mut builder = ureq::AgentBuilder::new() - .user_agent(concat!("typst/{}", env!("CARGO_PKG_VERSION"))); + .user_agent(concat!("typst/", env!("CARGO_PKG_VERSION"))); // Get the network proxy config from the environment. if let Some(proxy) = env_proxy::for_url_str(url)