Skip to content

Allow developers to set the Content-Disposition header in Response::download() #1970

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 1 commit into from
May 14, 2013

Conversation

jasonlfunk
Copy link

This change allows developers to set the Content-Disposition header in Response::download() without it getting overwritten. This was a necessary change for me because I want to be able to suggest to the browser whether or not to display a PDF or to download it with:

Content-Disposition: inline; filename=file.pdf;

or

Content-Disposition: attachment; filename=file.pdf;

This change allows me to do that.

@neoascetic
Copy link
Contributor

+1 on this

taylorotwell added a commit that referenced this pull request May 14, 2013
Allow developers to set the Content-Disposition header in Response::download()
@taylorotwell taylorotwell merged commit 3965429 into laravel:master May 14, 2013
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.

3 participants