Skip to content

Commit

Permalink
fix: support text body compressed in gzip and brotli
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Nov 5, 2024
1 parent c6a8c91 commit 17c4b73
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 1 deletion.
4 changes: 4 additions & 0 deletions rhttp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.9.2

- fix: support text body compressed in `gzip` and `brotli`

## 0.9.1

- feat: allow reuse of same `CancelToken` for multiple requests, all requests are canceled when token is canceled
Expand Down
70 changes: 70 additions & 0 deletions rhttp/rust/Cargo.lock

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

18 changes: 17 additions & 1 deletion rhttp/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,26 @@ crate-type = ["cdylib", "staticlib"]
chrono = "0.4.38"
flutter_rust_bridge = { version = "=2.5.1", features = ["chrono"] }
futures-util = "0.3.30"
reqwest = { version = "0.12.7", default-features = false, features = ["charset", "http2", "http3", "rustls-tls", "rustls-tls-native-roots", "stream", "multipart"] }
tokio = { version = "1.40.0", features = ["full"] }
tokio-util = "0.7.12"

[dependencies.reqwest]
version = "0.12.7"
default-features = false
features = [
"charset",
"http2",
"http3",
"rustls-tls",
"rustls-tls-native-roots",
"stream",
"multipart",

# Compression
"brotli",
"gzip",
]

[profile.release]
panic = "abort"

Expand Down

0 comments on commit 17c4b73

Please sign in to comment.