8000 httputil: Fix support for non-latin1 filenames in multipart uploads by bdarnell · Pull Request #3503 · tornadoweb/tornado · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

httputil: Fix support for non-latin1 filenames in multipart uploads #3503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 22, 2025

Conversation

bdarnell
Copy link
Member

The change to be stricter about characters allowed in HTTP headers inadvertently broke support for non-latin1 filenames in multipart uploads (this was missed in testing because our i18n test case only used characters in latin1). This commit adds a hacky workaround without changing any APIs to make it safe for a 6.5.1 patch release; a more robust solution will follow for future releases.

Fixes #3502

bdarnell added 2 commits May 22, 2025 10:59
The change to be stricter about characters allowed in HTTP headers
inadvertently broke support for non-latin1 filenames in multipart
uploads (this was missed in testing because our i18n test case only
used characters in latin1). This commit adds a hacky workaround without
changing any APIs to make it safe for a 6.5.1 patch release; a more
robust solution will follow for future releases.

Fixes tornadoweb#3502
@bdarnell bdarnell changed the base branch from master to branch6.5 May 22, 2025 17:29
@bdarnell bdarnell merged commit b5586f3 into tornadoweb:branch6.5 May 22, 2025
1 check passed
@bdarnell bdarnell deleted the multipart-utf8 branch May 22, 2025 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After upgrading to 6.5, the upload file reports an error
1 participant
0