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

Support for MultiValue Request Headers #63

Closed Bryanide closed 4 years ago

Bryanide commented 4 years ago

Hello, 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

https://github.com/awslabs/aws-lambda-go-api-proxy/blob/8564c1ce2a1c8ccf3571fb1ffa2c6cef1cbf56c0/core/request.go#L193

I have addressed this issue in https://github.com/awslabs/aws-lambda-go-api-proxy/pull/62

jt0 commented 4 years ago

PR merged.