Sha256: e2c5f9da4ada412dd25da2145ee11a98d128af54f30e3d731d38f0ffaf70c508
Contents?: true
Size: 609 Bytes
Versions: 50
Compression:
Stored size: 609 Bytes
Contents
module Seahorse module Client module Plugins class ContentLength < Plugin # @api private class Handler < Client::Handler def call(context) begin length = context.http_request.body.size context.http_request.headers['Content-Length'] = length rescue # allowing `Content-Length` failed to be set # see Aws::Plugins::TransferEncoding end @handler.call(context) end end handler(Handler, step: :sign, priority: 0) end end end end
Version data entries
50 entries across 50 versions & 1 rubygems