Skip to content

Commit

Permalink
Regenerated Code from Models
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed Dec 26, 2019
1 parent b770e52 commit d74c013
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion private/protocol/rest/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func buildLocationElements(r *request.Request, v reflect.Value, buildGETQuery bo
var err error
switch field.Tag.Get("location") {
case "headers": // header maps
err = buildHeaderMap(&r.HTTPRequest.Header, m, field.Tag, aws.BoolValue(r.Config.NormalizeHeaders))
err = buildHeaderMap(&r.HTTPRequest.Header, m, field.Tag, aws.BoolValue(r.Config.LowerCaseHeaderMaps))
case "header":
err = buildHeader(&r.HTTPRequest.Header, m, name, field.Tag)
case "uri":
Expand Down
2 changes: 1 addition & 1 deletion private/protocol/rest/rest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func TestNormalizedHeaders(t *testing.T) {

for name, tt := range cases {
t.Run(name, func(t *testing.T) {
cfg := &aws.Config{Region: aws.String("us-west-2"), NormalizeHeaders: &tt.normalize}
cfg := &aws.Config{Region: aws.String("us-west-2"), LowerCaseHeaderMaps: &tt.normalize}
c := unit.Session.ClientConfig("testService", cfg)
svc := client.New(
*cfg,
Expand Down
2 changes: 1 addition & 1 deletion private/protocol/rest/unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func unmarshalLocationElements(r *request.Request, v reflect.Value) {
}
case "headers":
prefix := field.Tag.Get("locationName")
err := unmarshalHeaderMap(m, r.HTTPResponse.Header, prefix, aws.BoolValue(r.Config.NormalizeHeaders))
err := unmarshalHeaderMap(m, r.HTTPResponse.Header, prefix, aws.BoolValue(r.Config.LowerCaseHeaderMaps))
if err != nil {
r.Error = awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
break
Expand Down
3 changes: 3 additions & 0 deletions private/protocol/restjson/build_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions private/protocol/restjson/unmarshal_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions private/protocol/restxml/build_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions service/s3/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions service/s3/s3manager/upload_input.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d74c013

Please sign in to comment.