aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-27 13:47:37 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-27 13:47:37 -0700
commitcae2b5bb59212961c4a35c939381ebece48d1177 (patch)
tree85d3f8c4833aea81dfb330a3e8a667a163ba7a29 /actionpack
parentd05d7e23d19b0f22328ad5ec3c87883c96fc4365 (diff)
downloadrails-cae2b5bb59212961c4a35c939381ebece48d1177.tar.gz
rails-cae2b5bb59212961c4a35c939381ebece48d1177.tar.bz2
rails-cae2b5bb59212961c4a35c939381ebece48d1177.zip
this always sets :public to false, so just do that
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/data_streaming.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/data_streaming.rb b/actionpack/lib/action_controller/metal/data_streaming.rb
index e6d7f958bb..1586893ace 100644
--- a/actionpack/lib/action_controller/metal/data_streaming.rb
+++ b/actionpack/lib/action_controller/metal/data_streaming.rb
@@ -169,7 +169,7 @@ module ActionController #:nodoc:
# after it displays the "open/save" dialog, which means that if you
# hit "open" the file isn't there anymore when the application that
# is called for handling the download is run, so let's workaround that
- response.cache_control[:public] ||= false
+ response.cache_control[:public] = false
end
end
end