Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add omitempty to ALBTargetGroupRequest.Body #408

Merged
merged 3 commits into from Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"`
Body string `json:"body,omitempty"`
}

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