summaryrefslogtreecommitdiff
path: root/crates/typst-cli
diff options
context:
space:
mode:
authordidier amyot <didier.amyot@gmail.com>2024-01-05 13:07:55 -0500
committerGitHub <noreply@github.com>2024-01-05 18:07:55 +0000
commitd52ae4bd480b3eaa58b6bb0cf53dc5301d222cc1 (patch)
tree015d4580d23c66177254f4f89cec88fb6eeed81b /crates/typst-cli
parent4a65c2115ba3f534d56d77689acf433ad7c67a05 (diff)
fix: removed typo from http client user agent. (#3134)
Diffstat (limited to 'crates/typst-cli')
-rw-r--r--crates/typst-cli/src/download.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-cli/src/download.rs b/crates/typst-cli/src/download.rs
index 0fff7b85..a5062fd3 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<Vec<u8>, ureq::Error> {
#[allow(clippy::result_large_err)]
pub fn download(url: &str) -> Result<ureq::Response, ureq::Error> {
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)