feat(updater): allow passing headers & timeout in Update.download* methods (#1661)

closes #1634
This commit is contained in:
Amr Bashir authored and GitHub committed 2024-09-03 01:02:16 +03:00
1 parent b9bcb2b6af
commit f8255e1db5
6 files changed
+69 -11

No files matched your search

-4
View File
@@ -469,10 +469,6 @@ impl Update {
"Accept",
HeaderValue::from_str("application/octet-stream").unwrap(),
);
headers.insert(
"User-Agent",
HeaderValue::from_str("tauri-updater").unwrap(),
);
let mut request = ClientBuilder::new().user_agent(UPDATER_USER_AGENT);
if let Some(timeout) = self.timeout {