Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Use post_json so that the Content-Type is set to application/json

Joseph Lyons41d4454f4581
diff --git a/crates/auto_update/src/auto_update.rs b/crates/auto_update/src/auto_update.rs
index 68d3776e1c8..abf95ff45a0 100644
--- a/crates/auto_update/src/auto_update.rs
+++ b/crates/auto_update/src/auto_update.rs
@@ -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);