Skip to content

Commit

Permalink
remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Jan 12, 2024
1 parent 201685b commit 2f91107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function setCookies (reply) {
setCookie.push(cookie.serialize(c.name, c.value, c.opts))
}

if (setCookieHeader !== undefined) reply.removeHeader('Set-Cookie')
reply.removeHeader('Set-Cookie')
reply.header('Set-Cookie', setCookie)
reply[kReplySetCookies].clear()
}
Expand Down

0 comments on commit 2f91107

Please sign in to comment.