Skip to content

Commit

Permalink
Merge pull request #14 from ErichDonGubler/gzip
Browse files Browse the repository at this point in the history
Try to use `gzip` encoding for artifact downloads
  • Loading branch information
ErichDonGubler authored Dec 23, 2023
2 parents 8ed6b76 + 70f6a23 commit 45de196
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ futures = { version = "0.3.28", default-features = false, features = ["std"] }
indicatif = { version = "0.17.6", features = ["futures"] }
log = "0.4.20"
regex = "1.9.4"
reqwest = { version = "0.11.20", features = ["json"] }
reqwest = { version = "0.11.20", features = ["gzip", "json"] }
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.105"
tokio = { version = "1.32.0", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ async fn main() {

let Cli { options, revisions } = Cli::parse();

let client = Client::new();
let client = Client::builder().gzip(true).build().unwrap();

for rev_ref in revisions {
get_artifacts_for_revision(&client, &options, &rev_ref).await
Expand Down

0 comments on commit 45de196

Please sign in to comment.