ETag Support from Edge-Rails

Added ETag support from

   http://dev.rubyonrails.org/changeset/6158
This commit is contained in:
Jacques Distler 2007-05-18 16:53:58 -05:00
parent e4e26400ef
commit 457ec8627c
3 changed files with 67 additions and 0 deletions

View file

@ -48,6 +48,10 @@ module ActionController
# REQUEST_METHOD header directly. Thus, for head, both get? and head? will return true.
def head?
@env['REQUEST_METHOD'].downcase.to_sym == :head
end
def headers
@env
end
# Determine whether the body of a HTTP call is URL-encoded (default)