From a6ceb625a82996fa4c87593e7c27ed80508e66fa Mon Sep 17 00:00:00 2001 From: Andreas Richter Date: Sat, 24 Aug 2019 18:29:46 -0400 Subject: [PATCH] Add support for multivalue headers. --- lib/serve.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/serve.js b/lib/serve.js index f39ea2af..f678a9f2 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -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(