CodeGenieApp / CodeGenieApp/serverless-express

`headers` missing on API Gateway V1 response

オープン
#437 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
5.3k
フォーク
676
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、API Gateway V1 response が input headers を multiValueHeaders に変換する仕組みを追跡し、その挙動を aws-serverless-express と比較します。Cloudflare worker proxy に期待される response shape を確認し、headers、multiValueHeaders、またはその両方を出力すべきかどうかも確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, express, javascript, node.js
領域
api, backend, cloud
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。