rsnext/packages/next/server/web/spec-extension
Dominik Ferber feabd54f6b
avoid mutating response.cookie options (#31679)
Previously `response.cookie(name, value, options)` would mutate the passed in `options` which lead to unexpected behaviour as described in #31666.

This PR clones the `options` argument before mutating it.

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
2021-11-22 11:20:01 +00:00
..
fetch-event.ts Improve deprecation errors for new middleware API (#30316) 2021-10-26 17:03:39 +02:00
request.ts Add types for geo lat and long (#31624) 2021-11-19 17:09:52 +00:00
response.ts avoid mutating response.cookie options (#31679) 2021-11-22 11:20:01 +00:00