Sha256: 089039faa3717e52a40cfcc1f44646e1646da33c6590d3203da50c3ec2358978
Contents?: true
Size: 761 Bytes
Versions: 48
Compression:
Stored size: 761 Bytes
Contents
# frozen_string_literal: true module Aws module Finspace module Plugins class ContentType < Seahorse::Client::Plugin def add_handlers(handlers, _config) handlers.add(Handler) end class Handler < Seahorse::Client::Handler def call(context) # Some operations break when given an empty content-type header. # The SDK adds this blank content-type header # since Net::HTTP provides a default that can break services. # We're setting one here even though it's not used or necessary. context.http_request.headers['content-type'] = 'application/x-amz-json-1.1' @handler.call(context) end end end end end end
Version data entries
48 entries across 48 versions & 1 rubygems