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 compression/GZIP on ALB #76

Closed NotSoSuper closed 3 years ago

NotSoSuper commented 3 years ago

Hello,

Is there anyway to support GZIP while using the ALB? I know the API GW supports compression, however, I'm not using that.

I've seen that there isn't "full" support for ALB right now, but it's working just fine for me.

Any tips would be appreciated, thanks!

NotSoSuper commented 3 years ago

Figured out a solution, in general you must force enable base64 encoding for the return (gzipped) body.

jcunhafonte commented 3 years ago

@NotSoSuper Can you elaborate on the solution, please?