CodeGenieApp / CodeGenieApp/serverless-express
`headers` missing on API Gateway V1 response
- Lingua principale
- JavaScript
- Stelle
- 5.3k
- Fork
- 676
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando il modo in cui la response di API Gateway V1 converte gli input headers in multiValueHeaders, quindi confronta questo comportamento con aws-serverless-express. Verifica la response shape prevista per il Cloudflare worker proxy, incluso se debbano essere emessi headers, multiValueHeaders o entrambi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, express, javascript, node.js
- Ambito
- api, backend, cloud
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100