enhancement: Enhance Content-Disposition Header parsing robustness #220
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Subject: enhancement: Enhance Content-Disposition Header parsing robustness
变更摘要
本 PR 增强了
parse_options_header函数处理复杂 HTTP Header 格式的能力,修复了以下边界情况:变更类型
变更内容
核心改进
使用状态机模式实现健壮的 Header 参数解析,正确处理 RFC 规范中定义的各种格式变体。
解决的问题
name="user;name"类型参数被错误解析的问题filename="My \"Cool\" File.txt"转义引号处理问题测试
清单