Skip to content

Commit

Permalink
refactor: code
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Akait <4567934+alexander-akait@users.noreply.github.com>
  • Loading branch information
snitin315 and alexander-akait committed Sep 16, 2021
1 parent cde5319 commit f2a2d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Server.js
Expand Up @@ -1847,7 +1847,7 @@ class Server {

const allHeaders = [];

if (typeof headers === "object" && !Array.isArray(headers)) {
if (!Array.isArray(headers)) {
// eslint-disable-next-line guard-for-in
for (const name in headers) {
allHeaders.push({ key: name, value: headers[name] });
Expand Down

0 comments on commit f2a2d9c

Please sign in to comment.