aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/cache.rb
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2015-10-03 19:14:37 -0700
committerJeremy Daer <jeremydaer@gmail.com>2015-10-03 21:59:18 -0700
commit2356403330f2fa60045c858434cad550f6b3ee46 (patch)
treea82b9781bd1c2efb85252e376fa9d27fc94d1f29 /actionpack/lib/action_dispatch/http/cache.rb
parent24b1850130c68fe70b912277527e9c139ccc6742 (diff)
downloadrails-2356403330f2fa60045c858434cad550f6b3ee46.tar.gz
rails-2356403330f2fa60045c858434cad550f6b3ee46.tar.bz2
rails-2356403330f2fa60045c858434cad550f6b3ee46.zip
Introduce `Headers#add`. Move `Response#add_header` upstream.
* Introduce `ActionDispatch::Http::Headers#add` to add a value to a multivalued header. * Move `Response#add_header` upstream: https://github.com/rack/rack/pull/957 * Match upstream `Response#have_header?` -> `#has_header?` name change.
Diffstat (limited to 'actionpack/lib/action_dispatch/http/cache.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/cache.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/cache.rb b/actionpack/lib/action_dispatch/http/cache.rb
index 1d0a6b6eb3..6b25ee9a70 100644
--- a/actionpack/lib/action_dispatch/http/cache.rb
+++ b/actionpack/lib/action_dispatch/http/cache.rb
@@ -59,7 +59,7 @@ module ActionDispatch
end
def last_modified?
- have_header? LAST_MODIFIED
+ has_header? LAST_MODIFIED
end
def last_modified=(utc_time)
@@ -73,7 +73,7 @@ module ActionDispatch
end
def date?
- have_header? DATE
+ has_header? DATE
end
def date=(utc_time)