Skip to content

Commit

Permalink
Revert "Add omitempty to ALBTargetGroupRequest.Body (aws#408)"
Browse files Browse the repository at this point in the history
This reverts commit 14da40f.
  • Loading branch information
bmoffatt committed Jul 13, 2022
1 parent 0dae564 commit 3985733
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion events/alb.go
Expand Up @@ -10,7 +10,7 @@ type ALBTargetGroupRequest struct {
MultiValueHeaders map[string][]string `json:"multiValueHeaders,omitempty"`
RequestContext ALBTargetGroupRequestContext `json:"requestContext"`
IsBase64Encoded bool `json:"isBase64Encoded"`
Body string `json:"body,omitempty"`
Body string `json:"body"`
}

// ALBTargetGroupRequestContext contains the information to identify the load balancer invoking the lambda
Expand Down
3 changes: 2 additions & 1 deletion events/testdata/alb-lambda-target-request-headers-only.json
Expand Up @@ -21,5 +21,6 @@
"x-imforwards": "20",
"x-myheader": "123"
},
"body": "",
"isBase64Encoded": false
}
}
Expand Up @@ -43,6 +43,6 @@
"123"
]
},
"body": "Some text",
"body": "",
"isBase64Encoded": false
}
}

0 comments on commit 3985733

Please sign in to comment.