Is this a HEAD request? HEAD is mapped as :get for request.method, so here
we ask the REQUEST_METHOD header directly. Thus, for head, both get? and head? will
return true.
# File actionpack/lib/action_controller/request.rb, line 49
def head?
@env['REQUEST_METHOD'].downcase.to_sym == :head
end