aws / chalice

Python Serverless Microframework for AWS
Apache License 2.0
10.67k stars 1.01k forks source link

Fix type of Response.headers #2050

Closed cdroege closed 11 months ago

cdroege commented 1 year ago

The type for Response.headers was previously typed as Dict[str, str], but that is not completely correct. Header values can also be a list of strings, e.g. for multiple Set-Cookie headers. See #1214 when this feature was introduced.

The wrong type definition was introduced in afd23d7d729f8383033fe3851bc1de5effd1f22f.

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