From 16b4e18a4476f0288d2918207e599cafbddc775b Mon Sep 17 00:00:00 2001 From: Alex Woods Date: Thu, 10 Mar 2022 14:52:30 -0800 Subject: [PATCH] Add x-amz-region-set to list of headers deleted for re-sign (#2680) --- gems/aws-sdk-core/CHANGELOG.md | 2 ++ gems/aws-sdk-core/lib/aws-sdk-core/plugins/signature_v4.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/gems/aws-sdk-core/CHANGELOG.md b/gems/aws-sdk-core/CHANGELOG.md index 2effa3ea48e..701caf0a9d0 100644 --- a/gems/aws-sdk-core/CHANGELOG.md +++ b/gems/aws-sdk-core/CHANGELOG.md @@ -1,6 +1,8 @@ Unreleased Changes ------------------ +* Issue - Add x-amz-region-set to list of headers deleted for re-sign. + 3.129.1 (2022-03-10) ------------------ diff --git a/gems/aws-sdk-core/lib/aws-sdk-core/plugins/signature_v4.rb b/gems/aws-sdk-core/lib/aws-sdk-core/plugins/signature_v4.rb index c403d60ee9d..b74a0403ef5 100644 --- a/gems/aws-sdk-core/lib/aws-sdk-core/plugins/signature_v4.rb +++ b/gems/aws-sdk-core/lib/aws-sdk-core/plugins/signature_v4.rb @@ -98,6 +98,7 @@ def apply_signature(options = {}) req.headers.delete('Authorization') req.headers.delete('X-Amz-Security-Token') req.headers.delete('X-Amz-Date') + req.headers.delete('x-Amz-Region-Set') if context.config.respond_to?(:clock_skew) && context.config.clock_skew &&