module Roda::RodaPlugins::Head::InstanceMethods

Public Instance Methods

call(*) click to toggle source

Always use an empty response body for head requests, with a content length of 0.

Calls superclass method
# File lib/roda/plugins/head.rb, line 29
def call(*)
  res = super
  if request.head?
    res[2] = []
  end
  res
end