Skip to content

Commit 597f9d7

Browse files
committed
fix: replace reqwest with wreq to bypass Reddit's TLS fingerprint blocking
1 parent ba98178 commit 597f9d7

4 files changed

Lines changed: 231 additions & 312 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ askama = { version = "0.14.0", default-features = false, features = [
1717
"std",
1818
"derive",
1919
] }
20-
cached = { version = "0.54.0", features = ["async"] }
20+
cached = { version = "0.59.0", features = ["async"] }
2121
clap = { version = "4.4.11", default-features = false, features = [
2222
"std",
2323
"env",
@@ -28,6 +28,8 @@ serde = { version = "1.0.193", features = ["derive"] }
2828
cookie = "0.18.0"
2929
futures-lite = "2.2.0"
3030
hyper = { version = "0.14.31", features = ["full"] }
31+
wreq = { version = "6.0.0-rc.28", features = ["brotli", "gzip", "deflate", "zstd", "json", "stream", "socks"] }
32+
wreq-util = { version = "3.0.0-rc.10" }
3133
percent-encoding = "2.3.1"
3234
route-recognizer = "0.3.1"
3335
serde_json = "1.0.133"
@@ -50,17 +52,15 @@ rss = "2.0.7"
5052
arc-swap = "1.7.1"
5153
serde_json_path = "0.7.1"
5254
async-recursion = "1.1.1"
53-
pulldown-cmark = { version = "0.12.0", features = ["simd", "html"], default-features = false }
54-
hyper-rustls = { version = "0.24.2", features = [ "http2" ] }
55+
pulldown-cmark = { version = "0.13.3", features = ["simd", "html"], default-features = false }
5556
tegen = "0.1.4"
5657
serde_urlencoded = "0.7.1"
5758
chrono = { version = "0.4.39", default-features = false, features = [ "std" ] }
5859
htmlescape = "0.3.1"
5960
bincode = "1.3.3"
6061
base2048 = "2.0.2"
61-
revision = "0.10.0"
62+
revision = "0.17.0"
6263
fake_user_agent = "0.2.2"
63-
rustls = "0.21.12"
6464

6565
[dev-dependencies]
6666
lipsum = "0.9.0"

0 commit comments

Comments
 (0)