aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/testing/process.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-07-30 21:00:39 -0700
committerYehuda Katz <wycats@gmail.com>2009-08-02 19:39:33 -0400
commit503ce1d01ce6c8eee9818f4e76a9f880bb1a291d (patch)
treecd7e9febdd4afab332bc677c76986c3bf1481930 /actionpack/lib/action_controller/testing/process.rb
parentf2a35723c8876697d5a7ebfdf329cee54d8a39ac (diff)
downloadrails-503ce1d01ce6c8eee9818f4e76a9f880bb1a291d.tar.gz
rails-503ce1d01ce6c8eee9818f4e76a9f880bb1a291d.tar.bz2
rails-503ce1d01ce6c8eee9818f4e76a9f880bb1a291d.zip
Update cache_control to be a Hash of options that is used to build the header.
* Significantly simplifies setting and modifying cache control in other areas
Diffstat (limited to 'actionpack/lib/action_controller/testing/process.rb')
-rw-r--r--actionpack/lib/action_controller/testing/process.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/testing/process.rb b/actionpack/lib/action_controller/testing/process.rb
index e7c64d0942..d32d5562e8 100644
--- a/actionpack/lib/action_controller/testing/process.rb
+++ b/actionpack/lib/action_controller/testing/process.rb
@@ -52,7 +52,7 @@ module ActionController #:nodoc:
class TestResponse < ActionDispatch::TestResponse
def recycle!
@status = 200
- @header = Rack::Utils::HeaderHash.new(DEFAULT_HEADERS)
+ @header = Rack::Utils::HeaderHash.new
@writer = lambda { |x| @body << x }
@block = nil
@length = 0