module Roda::RodaPlugins::Head::RequestMethods
def is_get?
def is_get? super || head? end
def match_method(method)
If the current request is a HEAD request, match if one of
def match_method(method) super || (!method.is_a?(Array) && head? && method.to_s.upcase == 'GET') end
def method_not_allowed(verbs)
Work with the not_allowed plugin so that if GET is one
def method_not_allowed(verbs) verbs = verbs.sub('GET', 'HEAD, GET') super end