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

This commit is contained in:
Joseph Lyons 2023-05-02 23:23:43 -04:00
parent 69a4fffae2
commit 41d4454f45

View File

@ -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);