awslabs / aws-lambda-web-adapter

Run web applications on AWS Lambda
Apache License 2.0
1.92k stars 115 forks source link

Remove "transfer-encoding" header from responses #442

Closed bnusunny closed 6 months ago

bnusunny commented 6 months ago

Description of changes:

This change removes "transfer-encoding" http header from web app response. This resolves an issue that sam local start-api fails to handle the chunked response from SpringBoot.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

bnusunny commented 6 months ago

I need to double check if this is the right place to remove these headers. At least 'transfer-encoding' is used in lambda-http crate to handle response body.

bnusunny commented 6 months ago

I confirmed 'transfer-encoding' is not used in lambda-http crate to handle response body.