mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-10 22:38:44 +02:00
feat(updater): allow passing headers & timeout in Update.download* methods (#1661)
closes #1634
This commit is contained in:
1 parent
b9bcb2b6af
commit
f8255e1db5
6 files changed
+69
-11
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user