resty v3.0.0-rc.2 版本更新介绍
发布日期: 2026-06-15
版本号: v3.0.0-rc.2
Resty v3 Release Candidate 2 版本发布。该版本修复了两个主要问题:当禁用响应解析且遇到不支持的 content-encoding 头时出现的解码器未找到错误,以及在 Request.Clone、Client.Close 等操作中可能发生的程序崩溃和状态损坏问题。同时感谢新贡献者 @g3m0sis 的参与。更多更新详情可查看项目的完整变更日志。
更新内容 (中文)
v3 候选版本 2
v3 指南
- 升级指南:https://resty.dev/docs/upgrading-to-v3/
错误修复
- 修复:当启用不解析响应且存在不支持的 content-encoding 头时出现内容解码器未找到错误(由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1169 提交)
- 修复:Request.Clone、Client.Close、SSE 默认日志记录器及无效 HTTP 方法处理中的 panic 和状态损坏问题(由 @g3m0sis 在 https://github.com/go-resty/resty/pull/1172 提交)
新贡献者
- @g3m0sis 在 https://github.com/go-resty/resty/pull/1172 中完成了首次贡献
完整更新日志:https://github.com/go-resty/resty/compare/v3.0.0-rc.1…v3.0.0-rc.2
更新内容 (原始)
v3 Release Candidate 2
v3 Guide
- Upgrade Guide: https://resty.dev/docs/upgrading-to-v3/
Bug Fixes
- fix: content decoder not found error when do not parse response is enabled and unsupported content-encoding header present by @jeevatkm in https://github.com/go-resty/resty/pull/1169
- fix: panics and state corruption in Request.Clone, Client.Close, SSE default logger, and invalid HTTP method handling by @g3m0sis in https://github.com/go-resty/resty/pull/1172
New Contributors
- @g3m0sis made their first contribution in https://github.com/go-resty/resty/pull/1172
Full Changelog: https://github.com/go-resty/resty/compare/v3.0.0-rc.1...v3.0.0-rc.2