CodeGenieApp / CodeGenieApp/serverless-express

`headers` missing on API Gateway V1 response

Open
#437 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.3k
Forks
676
PR merge metrics
No merged PRs in 30d

Description

For some reason, the API Gateway V1 response does not include the `headers` field. It converts the input headers to `multiValueHeaders`.

This is a breaking change from `aws-serverless-express` and something that I am now patching manually with `patch-package` to get back the previous response object.

We have our own API Gateway-like proxy via a Cloudflare worker and CF (or browser) workers don't support multi value headers in the response, so at the very least it would be nice to have an option to just use `headers` or pass both of them as is to the proxy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.