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.05k stars 197 forks source link

Fix ProxyWithContext to use original context #42

Closed AoiAsu closed 5 years ago

AoiAsu commented 5 years ago

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

Description of changes: Context got from request in http.HandlerFunc is not the one passed as the parameter of ProxyWithContext. It is replaced a new one. I fixed it to use the context passed as the parameter.

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

sapessi commented 5 years ago

Thanks for the fix @AoiAsu! Merged, I'll tag a release later today.