From d75c4cf59e53d2d1f1e571bc10305d1416291620 Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Mon, 25 May 2026 22:53:19 +0800 Subject: [PATCH] fix: enable gzip subscription responses docs: update changelog for gzip subscriptions --- Cargo.lock | 34 ++++++++++++++++++++++++++++++++++ Changelog.md | 3 ++- src-tauri/Cargo.toml | 1 + 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index aca138c9b..7b60a9c7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -204,6 +204,18 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "async-compression" +version = "0.4.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e79b3f8a79cccc2898f31920fc69f304859b3bd567490f75ebf51ae1c792a9ac" +dependencies = [ + "compression-codecs", + "compression-core", + "pin-project-lite", + "tokio", +] + [[package]] name = "async-executor" version = "1.14.0" @@ -1310,6 +1322,23 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "compression-codecs" +version = "0.4.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce2548391e9c1929c21bf6aa2680af86fe4c1b33e6cea9ac1cfeec0bd11218cf" +dependencies = [ + "compression-core", + "flate2", + "memchr", +] + +[[package]] +name = "compression-core" +version = "0.4.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc14f565cf027a105f7a44ccf9e5b424348421a1d8952a8fc9d499d313107789" + [[package]] name = "concurrent-queue" version = "2.5.0" @@ -8605,13 +8634,18 @@ version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" dependencies = [ + "async-compression", "bitflags 2.11.1", "bytes", + "futures-core", "futures-util", "http 1.4.0", "http-body 1.0.1", + "http-body-util", "iri-string", "pin-project-lite", + "tokio", + "tokio-util", "tower 0.5.3", "tower-layer", "tower-service", diff --git a/Changelog.md b/Changelog.md index f3f60011c..2120fbaf6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,7 +3,8 @@ ### 🐞 修复问题 - macOS 托盘速率可能的样式错误 -- 订阅导入 TLS 1.0/1.1 等过旧协议时显示更明确错误原因 +- 修复 订阅导入 TLS 1.0/1.1 等过旧协议时显示更明确错误原因 +- 修复 gzip 压缩订阅响应被当作无效 YAML 导致导入失败的问题
✨ 新增功能 diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index f52e1469b..93e4609ed 100755 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -66,6 +66,7 @@ percent-encoding = "2.3.2" reqwest = { version = "0.13.3", features = [ "json", "cookies", + "gzip", "rustls", "form", ] }