Module: Roda::RodaPlugins::Head::InstanceMethods
- Defined in:
- lib/roda/plugins/head.rb
Instance Method Summary collapse
-
#call ⇒ Object
Always use an empty response body for head requests, with a content length of 0.
Instance Method Details
#call ⇒ Object
Always use an empty response body for head requests, with a content length of 0.
45 46 47 48 49 50 51 |
# File 'lib/roda/plugins/head.rb', line 45 def call(*) res = super if @_request.head? res[2] = RodaPlugins::EMPTY_ARRAY end res end |