fix: removed typo from http client user agent. (#3134)

This commit is contained in:
didier amyot 2024-01-05 13:07:55 -05:00 committed by GitHub
parent 4a65c2115b
commit d52ae4bd48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)