Discrepancy in adding headers after v 0.8.1? #923
Replies: 2 comments 5 replies
-
Amendment 1 My suspicion is that this commit might have something to do with it. But this was submitted after lambda-http v0.11.0, and the empty headers begins with this version, 0.11.0. This commit seems to make headers empty intentionally because of some problem with API Gateway. But I'm unsure why making headers empty was the solution instead of making multiValueHeaders empty. Did the author intend for developers to populate headers another way? |
Beta Was this translation helpful? Give feedback.
-
That was an intentional change. See the PR description:
|
Beta Was this translation helpful? Give feedback.
-
Hi lambda_http folks. Wanted to ask this discussion group before digging deeper and (potentially) opening an issue.
multiValueHeaders
property. Theheaders
property is empty.headers
property gets filled as expected in the response object.Here's a short video demonstrating: https://youtu.be/0tFobUcEhbk
Let me know if I'm missing anything or if you'd like to see more. I see there is some code in lambda_http that handles headers depending on ApiGatewayV1 or V2. I see there is code handling V1 with proxies, but I'm unsure if this would affect what I'm seeing currently (or is even relevant).
Am new to Rust so thanks for your patience.
Beta Was this translation helpful? Give feedback.
All reactions