Skip to content

Commit

Permalink
config: add document to LowerCaseHeaderMaps v1 vs v2 behavior (#4297)
Browse files Browse the repository at this point in the history
Adds small blurb to `Config.LowerCaseHeaderMaps` documenting the v1's opt-in behavior vs v2's default behavior. Related to #445
  • Loading branch information
jasdel committed Feb 28, 2022
1 parent 4306613 commit 3d1156a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aws/config.go
Expand Up @@ -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
Expand Down

0 comments on commit 3d1156a

Please sign in to comment.