Skip to content

Commit

Permalink
forward cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
abihf authored Jan 28, 2022
1 parent f245082 commit 7237b6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions req.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func NewRequestV2(ctx context.Context, e *events.APIGatewayV2HTTPRequest) (*http
}

header := HeaderFromAPIGWProxyHeader(e.Headers)
header.Header["Cookie"] = e.Cookies
host := e.RequestContext.DomainName
length, err := strconv.ParseInt(header.Get("content-length"), 10, 64)
if err != nil {
Expand Down

0 comments on commit 7237b6d

Please sign in to comment.