class Seahorse::Client::Plugins::ContentLength::Handler
def call(context)
def call(context) # If it's an IO object and not a File / String / String IO if context.http_request.body.respond_to?(:size) length = context.http_request.body.size context.http_request.headers['Content-Length'] = length end @handler.call(context) end