Skip to content

Commit

Permalink
Add support for multivalue headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
richtera committed Aug 24, 2019
1 parent f0668ce commit a6ceb62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ function createCallback(response) {
for (const key in lambdaResponse.headers) {
response.setHeader(key, lambdaResponse.headers[key]);
}
for (const key in lambdaResponse.multiValueHeaders) {
const items = lambdaResponse.multiValueHeaders[key];
response.setHeader(key, items);
}

if (lambdaResponse.body) {
response.write(
Expand Down

0 comments on commit a6ceb62

Please sign in to comment.