awslabs / aws-lambda-go-api-proxy

lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin (https://gin-gonic.github.io/gin/ ) to AWS Lambda and Amazon API Gateway.
Apache License 2.0
1.04k stars 197 forks source link

Handling multi-value request headers #62

Closed Bryanide closed 4 years ago

Bryanide commented 4 years ago

Issue #, if available: https://github.com/awslabs/aws-lambda-go-api-proxy/issues/63

Description of changes: There is currently an issue where multi-value request headers are not properly being handled and set. This causes 406 errors in requests with multi-value headers enabled.

MultiValueHeaders is a map[string][]string whereas Headers is a map[string]string

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.