Skip to content

Commit

Permalink
Add omitempty to HTTPMethod in APIGatewayProxyRequest
Browse files Browse the repository at this point in the history
This can be empty for websocket events, see calavera/aws-lambda-events#33
  • Loading branch information
LegNeato authored Jan 9, 2021
1 parent b3dd246 commit 6b77cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/apigw.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package events
type APIGatewayProxyRequest struct {
Resource string `json:"resource"` // The resource path defined in API Gateway
Path string `json:"path"` // The url path for the caller
HTTPMethod string `json:"httpMethod"`
HTTPMethod string `json:"httpMethod,omitempty"`
Headers map[string]string `json:"headers"`
MultiValueHeaders map[string][]string `json:"multiValueHeaders"`
QueryStringParameters map[string]string `json:"queryStringParameters"`
Expand Down

0 comments on commit 6b77cd7

Please sign in to comment.