aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/streaming.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-07 16:27:32 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-07 16:27:32 -0700
commit05934d24aff62d66fc62621aa38dae6456e276be (patch)
tree023e885bacfa80c9c3fb2a305c0d396bb9c83fcc /actionpack/lib/action_controller/metal/streaming.rb
parent869b007172af30fdaac012467424750cde65da23 (diff)
downloadrails-05934d24aff62d66fc62621aa38dae6456e276be.tar.gz
rails-05934d24aff62d66fc62621aa38dae6456e276be.tar.bz2
rails-05934d24aff62d66fc62621aa38dae6456e276be.zip
deprecate the env method on controller instances
people should be accessing request information through the request object, not via the env hash. If they really really want at the env hash, then they can get it off the request.
Diffstat (limited to 'actionpack/lib/action_controller/metal/streaming.rb')
-rw-r--r--actionpack/lib/action_controller/metal/streaming.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/streaming.rb b/actionpack/lib/action_controller/metal/streaming.rb
index af31de1f3a..a6115674aa 100644
--- a/actionpack/lib/action_controller/metal/streaming.rb
+++ b/actionpack/lib/action_controller/metal/streaming.rb
@@ -199,7 +199,7 @@ module ActionController #:nodoc:
def _process_options(options) #:nodoc:
super
if options[:stream]
- if env["HTTP_VERSION"] == "HTTP/1.0"
+ if request.version == "HTTP/1.0"
options.delete(:stream)
else
headers["Cache-Control"] ||= "no-cache"