Fix cli type definition download commands

This commit is contained in:
Filip Tibell 2023-01-24 11:57:02 -05:00
parent 709c307374
commit cb9aa1fc1b
No known key found for this signature in database

View file

@ -79,7 +79,9 @@ impl Client {
.find(|asset| matches!(&asset.name, Some(name) if name == asset_name))
{
let file_path = current_dir()?.join(asset_name);
let file_string = self.get(&asset.url, &[]).await?;
let file_string = self
.get(&asset.url, &[("Accept", "application/octet-stream")])
.await?;
smol::fs::write(&file_path, &file_string)
.await
.with_context(|| {