lib/aws/core/configuration.rb in aws-sdk-1.14.1 vs lib/aws/core/configuration.rb in aws-sdk-1.15.0

- old
+ new

@@ -213,10 +213,16 @@ # # @attr_reader [String] user_agent_prefix (nil) A string prefix to # append to all requests against AWS services. This should be set # for clients and applications built on top of the aws-sdk gem. # + # @attr_reader [Boolean] verify_response_body_content_length (true) + # When `true` all HTTP handlers will perform a check to ensure + # that response bodies match the content-length specified in the + # response header, if present. Note that some HTTP handlers will + # always do this whether or not this value is true. + # class Configuration # Creates a new Configuration object. # @param options (see AWS.config) # @option options (see AWS.config) @@ -488,11 +494,11 @@ add_option :http_idle_timeout, 5 add_option :http_wire_trace, false, :boolean => true add_option_with_needs(:http_handler, - AWS::Core::Http::ConnectionPool::OPTIONS + AWS::Core::Http::ConnectionPool::OPTIONS + [:verify_response_body_content_length] ) do |config,options| AWS::Core::Http::NetHttpHandler.new(options) end add_option :logger @@ -516,8 +522,10 @@ add_option :use_ssl, true, :boolean => true add_option :user_agent_prefix + add_option :verify_response_body_content_length, true, :boolean => true + end end end