Skip to content

Commit 6f83f27

Browse files
committed
Fix tls on some systems
1 parent 2bbf82e commit 6f83f27

File tree

3 files changed

+150
-12
lines changed

3 files changed

+150
-12
lines changed

Cargo.lock

Lines changed: 147 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mediafire_rs"
33
description = "Downloads files and folders from mediafire"
44
authors = ["NicKoehler <grillinicola@proton.me"]
5-
version = "0.1.5"
5+
version = "0.1.6"
66
edition = "2021"
77
license = "MIT"
88
readme = "README.md"
@@ -29,7 +29,7 @@ async-recursion = "1.0.5"
2929
clap = { version = "4.5.20", features = ["cargo"] }
3030
tokio = { version = "1.41.0", features = ["full"] }
3131
serde = { version = "1.0.211", features = ["serde_derive"] }
32-
reqwest = { version = "0.12.8", features = ["stream", "json", "gzip", "native-tls-alpn"] }
32+
reqwest = { version = "0.12.12", features = ["stream", "json", "gzip", "rustls-tls"] }
3333

3434
[profile.release]
3535
lto = true

src/global.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use crate::types::download::DownloadJob;
88

99
lazy_static! {
1010
pub static ref CLIENT: reqwest::Client = reqwest::Client::builder()
11+
.use_rustls_tls()
1112
.default_headers(HeaderMap::from_iter([
1213
(USER_AGENT, HeaderValue::from_static("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36")),
1314
(ACCEPT_ENCODING, HeaderValue::from_static("gzip")),

0 commit comments

Comments
 (0)