Skip to content

Commit

Permalink
Add omitempty to ALBTargetGroupRequest.Body
Browse files Browse the repository at this point in the history
If a lambda returns `Body: nil`, then the ALB returns a 502.
  • Loading branch information
Hugo Osvaldo Barrera committed Nov 12, 2021
1 parent 1cb90e0 commit 21eb850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/alb.go
Original file line number Diff line number Diff line change
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

0 comments on commit 21eb850

Please sign in to comment.