Skip to content

Commit

Permalink
Fix missing context
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Aug 23, 2024
1 parent 0499320 commit ae4a90b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ def add_handlers(handlers, _config)

class OptionHandler < Seahorse::Client::Handler
def call(context)
context[:http_checksum] ||= {}

# Set validation mode to enabled when supported.
if context.config.response_checksum_calculation == 'WHEN_SUPPORTED'
enable_request_validation_mode(context)
Expand Down Expand Up @@ -196,7 +198,6 @@ def call(context)
name: "x-amz-checksum-#{algorithm.downcase}"
}

context[:http_checksum] ||= {}
context[:http_checksum][:request_algorithm] = request_algorithm
calculate_request_checksum(context, request_algorithm)
end
Expand Down

0 comments on commit ae4a90b

Please sign in to comment.