feat(http): reqwest 客户端启用 brotli / deflate 解码

对接部分 provider 时会返回 Content-Encoding: br / deflate,
缺少对应 feature 时 reqwest 只能按压缩字节原样交给调用方,
导致 text() 解码异常或 body 看似为空。显式开启两项 feature,
让所有标准压缩响应都可被正常还原。
This commit is contained in:
晴天
2026-04-20 15:35:43 +08:00
parent f69360744f
commit b1902baa13
3 changed files with 7 additions and 2 deletions

1
src-tauri/Cargo.lock generated
View File

@@ -406,6 +406,7 @@ version = "0.4.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb7b51a7d9c967fc26773061ba86150f19c50c0d65c887cb1fbe295fd16619b7"
dependencies = [
"brotli",
"compression-core",
"flate2",
"memchr",