From fa43b4bf5d267f7e8cf0dc84ada2749ff3e1b6ca Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 19 Nov 2023 12:49:08 +0100 Subject: Use proxy for fetching release metadata --- crates/typst-cli/src/update.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/typst-cli/src/update.rs') diff --git a/crates/typst-cli/src/update.rs b/crates/typst-cli/src/update.rs index 95418d03..f3a75163 100644 --- a/crates/typst-cli/src/update.rs +++ b/crates/typst-cli/src/update.rs @@ -11,7 +11,7 @@ use xz2::bufread::XzDecoder; use zip::ZipArchive; use crate::args::UpdateCommand; -use crate::download::download_with_progress; +use crate::download::{download, download_with_progress}; const TYPST_GITHUB_ORG: &str = "typst"; const TYPST_REPO: &str = "typst"; @@ -111,7 +111,7 @@ impl Release { ), }; - match ureq::get(&url).call() { + match download(&url) { Ok(response) => response .into_json() .map_err(|err| eco_format!("unable to parse JSON response: {err}")), -- cgit v1.2.3