mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
Use post_json so that the Content-Type is set to application/json
This commit is contained in:
parent
69a4fffae2
commit
41d4454f45
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ impl AutoUpdater {
|
|||
telemetry,
|
||||
})?);
|
||||
|
||||
let mut response = client.get(&release.url, request_body, true).await?;
|
||||
let mut response = client.post_json(&release.url, request_body, true).await?;
|
||||
smol::io::copy(response.body_mut(), &mut dmg_file).await?;
|
||||
log::info!("downloaded update. path:{:?}", dmg_path);
|
||||
|
||||
|
|
Loading…
Reference in a new issue