Don't mangle the options object in res.cookie
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Make a copy of the cookie options before mutating it to pass to cookie.serialize. This prevents unexpected things from happening when we try to use the same options object multiple times. Also add a test to verify that the options object does not change after a request is made.
authored by Greg Methvin · committed by Greg Methvin · parent 8d21f1e · Browse files · 2 files+25 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+25 added−3 removed
- tests:+20 added−0 removed
- other:+5 added−3 removed