Skip to content
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

Don't override request level Content-Disposition header if it exists #466

Merged
merged 1 commit into from Jul 6, 2020
Merged

Don't override request level Content-Disposition header if it exists #466

merged 1 commit into from Jul 6, 2020

Conversation

bradleypriest
Copy link
Contributor

@bradleypriest bradleypriest commented Apr 9, 2020

#437 added the ability to specify disposition at the middleware level.
However, this had the unexpected side-effect of steamrolling any per-request disposition headers currently set, which was a pretty massive change in behaviour in a patch release.

This updates the logic to only set the Content Disposition header if it doesn't already exist.

@serene serene added the ready label Apr 21, 2020
@exviva
Copy link

exviva commented May 6, 2020

Could we get this one released @serene ?

@github-actions
Copy link

github-actions bot commented Jul 6, 2020

This pull request has been marked as stale and will be automatically closed.

@serene serene merged commit 24e6d7d into pdfkit:master Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants