module Roda::RodaPlugins::Head::InstanceMethods
Private Instance Methods
Source
# File lib/roda/plugins/head.rb, line 62 def _roda_after_30__head(res) if res && @_request.head? body = res[2] if body.respond_to?(:close) res[2] = CloseLater.new(body) else res[2] = EMPTY_ARRAY end end end
Always use an empty response body for head requests, with a content length of 0.