From 3d1156abcf6c6a02b9ef805d3d8abb4971a38f12 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Mon, 28 Feb 2022 15:25:17 -0800 Subject: [PATCH] config: add document to LowerCaseHeaderMaps v1 vs v2 behavior (#4297) Adds small blurb to `Config.LowerCaseHeaderMaps` documenting the v1's opt-in behavior vs v2's default behavior. Related to #445 --- aws/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aws/config.go b/aws/config.go index 79f18fb2ff..4818ea427e 100644 --- a/aws/config.go +++ b/aws/config.go @@ -170,6 +170,9 @@ type Config struct { // // For example S3's X-Amz-Meta prefixed header will be unmarshaled to lower case // Metadata member's map keys. The value of the header in the map is unaffected. + // + // The AWS SDK for Go v2, uses lower case header maps by default. The v1 + // SDK provides this opt-in for this option, for backwards compatibility. LowerCaseHeaderMaps *bool // Set this to `true` to disable the EC2Metadata client from overriding the