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

allow send_file/send_data to skip disposition header, closes #2973 #6078

Merged
merged 2 commits into from Apr 30, 2012

Conversation

lest
Copy link
Contributor

@lest lest commented Apr 30, 2012

No description provided.

@@ -127,7 +125,7 @@ def each
#
# See +send_file+ for more information on HTTP Content-* headers and caching.
def send_data(data, options = {}) #:doc:
send_file_headers! options.dup
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means we are modifying the original options, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed send_file_headers! method and it doesn't modify options now.

josevalim added a commit that referenced this pull request Apr 30, 2012
allow send_file/send_data to skip disposition header, closes #2973
@josevalim josevalim merged commit aa89bf7 into rails:master Apr 30, 2012
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.

None yet

2 participants