Skip to content

Commit

Permalink
refactor: use more Object.entries
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jul 9, 2022
1 parent b864a35 commit c1552e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/events/http/HttpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c1552e4

Please sign in to comment.