Do not use post_json() to auto update
This commit is contained in:
parent
f51425d390
commit
8313414e1e
3 changed files with 4 additions and 10 deletions
|
@ -273,7 +273,7 @@ impl AutoUpdater {
|
|||
telemetry,
|
||||
})?);
|
||||
|
||||
let mut response = client.post_json(&release.url, request_body, true).await?;
|
||||
let mut response = client.get(&release.url, request_body, true).await?;
|
||||
smol::io::copy(response.body_mut(), &mut dmg_file).await?;
|
||||
log::info!("downloaded update. path:{:?}", dmg_path);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue