Sha256: 5aef69375fd806056f8b23f3fb7689abcfe23835ee2c71ba95d399afb95df665
Contents?: true
Size: 718 Bytes
Versions: 5
Compression:
Stored size: 718 Bytes
Contents
module Aws module SSO 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 SSO 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/json' @handler.call(context) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems