From cb9aa1fc1b1b787cbf2d0f7264c0fa1447bae4e6 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Tue, 24 Jan 2023 11:57:02 -0500 Subject: [PATCH] Fix cli type definition download commands --- src/cli/utils/github.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/utils/github.rs b/src/cli/utils/github.rs index 8e63672..ab36710 100644 --- a/src/cli/utils/github.rs +++ b/src/cli/utils/github.rs @@ -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(|| {