Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aws/defaults: Fix request metadata headers causing signature errors
Fixes the SDK's adding the request metadata headers in the wrong location within the request handler stack. This created a situation where a request that was retried would sign the new attempt using the old value of the header. The header value would then be changed before sending the request. This moves the request invocation id to only occur during build, maintaining its value across all requests attempts. Also moves request retry metadata header to be before sign, and after build. This ensures that a new value for each attempt can be set, and included in each request attempt. Fix aws#533 Fix aws#521
- Loading branch information