gin v1.9.1 版本更新介绍
发布日期: 2023-06-01
版本号: v1.9.1
本次更新包含以下改动:修复了Request.Context()检查的问题;解决了Content-Disposition中文件名未正确转义的安全漏洞。功能优化方面,直接使用bytes.ReplaceAll方法重构代码,采用官方推荐方式处理字符串和切片转换,并提升了渲染代码的测试覆盖率。文档部分更新了可信代理配置的说明链接,同时改进了代码检查、测试流程及GitHub Actions的配置设置。
更新内容 (中文)
更新日志
BUG 修复
- 修复 Request.Context() 检查 #3512
安全
- 修复 Content-Disposition 中文件名未转义的问题 #3556
改进
文档
更新内容 (原始)
Changelog
BUG FIXES
- fix Request.Context() checks #3512
SECURITY
- fix lack of escaping of filename in Content-Disposition #3556
ENHANCEMENTS
- refactor: use bytes.ReplaceAll directly #3455
- convert strings and slices using the officially recommended way #3344
- improve render code coverage #3525
DOCS
- docs: changed documentation link for trusted proxies #3575
- chore: improve linting, testing, and GitHub Actions setup #3583