-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
fix: incorrect Content-Disposition serialization #31669
Conversation
Can you also update the test added in #25961 to also reflect this change ? Thanks! |
@deepak1556 done, thanks! |
Release Notes Persisted
|
I have automatically backported this PR to "13-x-y", please check out #31691 |
I have automatically backported this PR to "14-x-y", please check out #31692 |
I have automatically backported this PR to "15-x-y", please check out #31693 |
I have automatically backported this PR to "16-x-y", please check out #31694 |
* fix: incorrect Content-Disposition serialization * test: fixup test
Description of Change
Closes #31662.
Refs #25961.
Fixes an issue where
Content-Disposition
filenames would be incorrectly truncated at the first comma for filename attachments which contained one. This was happening becuase the filename in the parsenet::HttpContentDisposition
header was not being correctly wrapped in double quotes, thereby breaking serialization.Tested with the repro provided in the above linked issue:
Before
After
Checklist
npm test
passesRelease Notes
Notes: Fixes an issue where
Content-Disposition
filenames would be incorrectly truncated at the first comma for a filename attachment which contained one.