Skip to content

Commit

Permalink
Merge branch 'perf-small' of https://github.com/fastify/fastify into …
Browse files Browse the repository at this point in the history
…perf-small
  • Loading branch information
Eomm committed Sep 3, 2023
2 parents a559e7a + fbcce7c commit def98f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reply.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Reply.prototype.header = function (key, value = '') {
}

if (Array.isArray(value)) {
this[kReplyHeaders][key] = this[kReplyHeaders][key].concat(value)
Array.prototype.push.apply(this[kReplyHeaders][key], value)
} else {
this[kReplyHeaders][key].push(value)
}
Expand Down

0 comments on commit def98f8

Please sign in to comment.