mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Fix cli type definition download commands
This commit is contained in:
parent
709c307374
commit
cb9aa1fc1b
1 changed files with 3 additions and 1 deletions
|
@ -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(|| {
|
||||
|
|
Loading…
Reference in a new issue