module Roda::RodaPlugins::DropBody::ResponseMethods

def finish

and Content-Type headers.
returned, use an empty body and remove the Content-Length
If the response status indicates a body should not be
def finish
  r = super
  case r[0]
  when 100, 101, 102, 204, 304
    r[2] = EMPTY_ARRAY
    h = r[1]
    h.delete("Content-Length")
    h.delete("Content-Type")
  when 205
    r[2] = EMPTY_ARRAY
    h = r[1]
    h["Content-Length"] = '0'
    h.delete("Content-Type")
  end
  r
end