Don't mangle the options object in res.cookie
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.
G
Greg Methvin committed
39ee6f8e79a294823c6ff3a33b10557c59486cd4
Parent: 8d21f1e