We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9aeac7 commit fc49dd5Copy full SHA for fc49dd5
lambda-http/src/response.rs
@@ -104,9 +104,11 @@ impl LambdaResponse {
104
body,
105
status_code: status_code as i64,
106
is_base64_encoded,
107
- // explicitly empty, as API gateway does not properly merge headers and
108
- // multi-value-headers, resulting in duplicate headers
109
- headers: HeaderMap::new(),
+ // ALB responses are used for ALB integrations as well as
+ // Lambda Function URLs. The former uses the `multi_value_headers` field,
+ // while the later uses the `headers` field. We need to return
110
+ // both fields to ensure both integrations work correctly.
111
+ headers: headers.clone(),
112
multi_value_headers: headers,
113
status_description: Some(format!(
114
"{} {}",
0 commit comments