mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
no need to dup options in send_data
options aren't modified inside send_file_headers!
This commit is contained in:
parent
9f64f20b8b
commit
cbb264e9fa
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ module ActionController #:nodoc:
|
|||
#
|
||||
# See +send_file+ for more information on HTTP Content-* headers and caching.
|
||||
def send_data(data, options = {}) #:doc:
|
||||
send_file_headers! options.dup
|
||||
send_file_headers! options
|
||||
render options.slice(:status, :content_type).merge(:text => data)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue