From 7237b6d96935d55bc615a302c3979304526d547f Mon Sep 17 00:00:00 2001 From: Abi Hafshin Alfarouq Date: Fri, 28 Jan 2022 11:55:22 +0700 Subject: [PATCH] forward cookies --- req.go | 1 + 1 file changed, 1 insertion(+) diff --git a/req.go b/req.go index 8c063c5..a97a1ed 100644 --- a/req.go +++ b/req.go @@ -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 {