Skip to content

Commit fa7f9b7

Browse files
authored
fix(core/updater): set max_redirections of 5, closes #7329 (#7341)
* fix(core/updater): set `max_redirections` of 5, closes #7329 * Update .changes/updater-redirect.md
1 parent eeff178 commit fa7f9b7

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changes/updater-redirect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'patch:bug'
3+
---
4+
5+
Fix updater not following endpoint redirects.

core/tauri/src/updater/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ impl<R: Runtime> Update<R> {
535535
HeaderValue::from_str("tauri/updater").unwrap(),
536536
);
537537

538-
let client = ClientBuilder::new().build()?;
538+
let client = ClientBuilder::new().max_redirections(5).build()?;
539539
// Create our request
540540
let mut req = HttpRequestBuilder::new("GET", self.download_url.as_str())?.headers(headers);
541541
if let Some(timeout) = self.timeout {

0 commit comments

Comments
 (0)