Skip to content

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