ETag Support from Edge-Rails
Added ETag support from http://dev.rubyonrails.org/changeset/6158
This commit is contained in:
parent
e4e26400ef
commit
457ec8627c
3 changed files with 67 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue