Skip to content

Commit

Permalink
v0.1.6 release - gzip workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
daveajones committed Sep 6, 2022
1 parent be43a4e commit d3336ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aggrivator"
version = "0.1.5"
version = "0.1.6"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -9,6 +9,6 @@ edition = "2018"
tokio = { version = "1.15.0", features = ["full"] }
futures = { version = "0.3" }
rusqlite = { version = "0.26", features = ["bundled"] }
reqwest = { "version" = "0.11", features = ["blocking","rustls-tls"] }
reqwest = { "version" = "0.11", features = ["blocking","rustls-tls","gzip"] }
chrono = { "version" = "0.4.19" }
httpdate = { "version" = "1.0.2" }
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Aggrivator
The new polling agent for Podcast Index.

This is a Rust rewrite of the aggrivate.js agent currently in production. The intent is to create a fast, parrallel http polling binary
that is less tightly coupled to the database.
The new feed polling agent for Podcast Index.

This parallel downloader can pull any sort of non-binary content from a url. To use it, just load up
the accompanying sqlite database with urls and run it.


## Worklog

v0.1.6
- Added auto-gzip decompression since some misconfigured servers don't respect accept-encoding

v0.1.5
- Switched to Rustls-tls as the TLS library
- Some minor changes to version announcing
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ async fn check_feed_is_updated(url: &str, etag: &str, last_modified: u64, feed_i
.timeout(Duration::from_secs(30))
.pool_idle_timeout(Duration::from_secs(20))
.default_headers(headers)
.gzip(true)
.redirect(custom)
.build()
.unwrap();
Expand Down

0 comments on commit d3336ad

Please sign in to comment.