resty v2.17.0 版本更新介绍
发布日期: 2025-11-23
版本号: v2.17.0
Go-resty v2.17.0 版本发布,修复了键值解析的边界错误和空POST请求缺失内容长度头的问题,并回溯修复了追踪信息总时间可能出错以及使用SetTimeout时出现负值时间差的问题。本次更新包含多位新贡献者的首次参与。
更新内容 (中文)
发布说明
错误修复
- 通过 @mbsulliv 修复键/值解析中的差一错误,详见 https://github.com/go-resty/resty/pull/975
- 通过 @Libero-Dev 修复空 POST 请求中缺失的 Content-Length 头,详见 https://github.com/go-resty/resty/pull/1003
回移植
- 回移植:来自 PR #1017 的跟踪信息中潜在的总时间计算错误,由 @git-hulk 修复,详见 https://github.com/go-resty/resty/pull/1018
- 回移植:使用 SetTimeout 时跟踪信息出现负值的问题,由 @nicolasbeauvais 修复,详见 https://github.com/go-resty/resty/pull/1065
版本更新
- v2.17.0 版本发布,由 @jeevatkm 完成,详见 https://github.com/go-resty/resty/pull/1066
新贡献者
- @mbsulliv 在 https://github.com/go-resty/resty/pull/975 中完成首次贡献
- @Libero-Dev 在 https://github.com/go-resty/resty/pull/1003 中完成首次贡献
完整变更日志:https://github.com/go-resty/resty/compare/v2.16.5…v2.17.0
更新内容 (原始)
Release Notes
Bug Fixes
- Fix off-by-one error in key/value resolution by @mbsulliv in https://github.com/go-resty/resty/pull/975
- Fix/missing content length header on empty post req by @Libero-Dev in https://github.com/go-resty/resty/pull/1003
Backport
- backport: potential wrong total time in trace info from PR #1017 by @git-hulk in https://github.com/go-resty/resty/pull/1018
- backport: negative trace substraction when using SetTimeout by @nicolasbeauvais in https://github.com/go-resty/resty/pull/1065
Release Updates
- For v2.17.0 release by @jeevatkm in https://github.com/go-resty/resty/pull/1066
New Contributors
- @mbsulliv made their first contribution in https://github.com/go-resty/resty/pull/975
- @Libero-Dev made their first contribution in https://github.com/go-resty/resty/pull/1003
Full Changelog: https://github.com/go-resty/resty/compare/v2.16.5...v2.17.0