Please sign in to comment.
Fix multiple set cookie calls duplicating cookies
Express/Connect has an override of res.setHeader, which has special handling for 'Set-Cookie'. This causes all already added cookies to get duplicated. Fix by checking if we're under express/connect, and then behaving appropriately.
- Loading branch information...
Showing with 3 additions and 1 deletion.