summaryrefslogtreecommitdiff
path: root/crates/typst-cli/src/update.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-11-19 12:49:08 +0100
committerLaurenz <laurmaedje@gmail.com>2023-11-19 12:49:08 +0100
commitfa43b4bf5d267f7e8cf0dc84ada2749ff3e1b6ca (patch)
tree0ca740ada3db3f56449485904869f64a1eca9eca /crates/typst-cli/src/update.rs
parente0d6526a53db562fb26d3fcfba091412d3c93bf4 (diff)
Use proxy for fetching release metadata
Diffstat (limited to 'crates/typst-cli/src/update.rs')
-rw-r--r--crates/typst-cli/src/update.rs4
1 files changed, 2 insertions, 2 deletions
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}")),