It's ok to look at the code, can you confirm the settings of Lambda proxy integration on the AWS console?
After changing the API Gateway settings, you need to republish for them to take effect.