1
0
Fork 0
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:
Sergey Nartimov 2012-04-30 10:15:41 +03:00
parent 9f64f20b8b
commit cbb264e9fa

View file

@ -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