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 7931bee commit e4c7b6fCopy full SHA for e4c7b6f
packages/open-next/src/converters/aws-apigw-v2.ts
@@ -97,11 +97,11 @@ function convertToApiGatewayProxyResultV2(
97
),
98
)
99
.forEach(([key, value]) => {
100
- if (value === null) {
+ if (value === null || value === undefined) {
101
headers[key] = "";
102
return;
103
}
104
- headers[key] = Array.isArray(value) ? value.join(", ") : value.toString();
+ headers[key] = Array.isArray(value) ? value.join(", ") : `${value}`;
105
});
106
107
const response: APIGatewayProxyResultV2 = {
0 commit comments