Skip to content

Commit

Permalink
Merge pull request #181 from getselfstudy/master
Browse files Browse the repository at this point in the history
Add support for multivalue headers.
  • Loading branch information
swyxio authored Aug 25, 2019
2 parents f0668ce + a6ceb62 commit 06ff271
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 06ff271

Please sign in to comment.