module Roda::RodaPlugins::SinatraHelpers::ResponseMethods

def finish

If the body is a DelayedBody, set the appropriate length for it.
def finish
  @length = @body.length if @body.is_a?(DelayedBody) && !@headers[RodaResponseHeaders::CONTENT_LENGTH]
  super
end