Skip to content

lambdaurl Wrap is not proxying LambdaFunctionURLRequest.Cookies #597

Description

@nguyengg

Is your feature request related to a problem? Please describe.
The Wrap function from https://github.com/aws/aws-lambda-go/blob/main/lambdaurl/http_handler.go#L105 creates an http.Request from an events.LambdaFunctionURLRequest. I don't see any references to proxying the original request's cookies similar to what aws-lambda-go-api-proxy does:

	for _, cookie := range req.Cookies {
		httpRequest.Header.Add("Cookie", cookie)
	}

This is a deal-breaker for me because my stream handlers rely on cookies

Describe the solution you'd like
Copy and paste that code block (I'll do this with a PR after creating this issue).

Describe alternatives you've considered
I don't think this module would like to take a dependency on aws-lambda-go-api-proxy so copying and pasting may be best.

Additional context
None.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions