Skip to content

Fix semicolon parsing in ContentDisposition - #205

Open
kukushechkin wants to merge 1 commit into
apple:mainfrom
kukushechkin:correctly-parse-content-disposition
Open

Fix semicolon parsing in ContentDisposition#205
kukushechkin wants to merge 1 commit into
apple:mainfrom
kukushechkin:correctly-parse-content-disposition

Conversation

@kukushechkin

Copy link
Copy Markdown
Contributor

Motivation

Unconditional split at ; splits filename value into multiple (usually broken) params.

Modifications

Correctly track quotes in ContentDisposition param and inly split params at high-level semicolon.

Result

Filenames with semicolons are parsed correctly.

Test Plan

Unit tests.

@kukushechkin kukushechkin added the 🔨 semver/patch No public API change. label Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant