From c1552e44579d5b9eb857602f3fba9a83198dd92f Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Fri, 8 Jul 2022 22:08:21 -0400 Subject: [PATCH] refactor: use more Object.entries --- src/events/http/HttpServer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/events/http/HttpServer.js b/src/events/http/HttpServer.js index a150d643d..4e2a78f08 100644 --- a/src/events/http/HttpServer.js +++ b/src/events/http/HttpServer.js @@ -170,8 +170,7 @@ export default class HttpServer { } // Override default headers with headers that have been explicitly set - keys(explicitlySetHeaders).forEach((key) => { - const value = explicitlySetHeaders[key] + entries(explicitlySetHeaders).forEach(([key, value]) => { if (value) { response.headers[key] = value }