mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-22 23:25:20 +00:00
Merge pull request #542 from sveltejs/gh-528
avoid mutating `opts.headers` in `this.fetch` (#528)
This commit is contained in:
@@ -105,7 +105,7 @@ export function get_page_handler(
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (include_cookies) {
|
if (include_cookies) {
|
||||||
if (!opts.headers) opts.headers = {};
|
opts.headers = Object.assign({}, opts.headers);
|
||||||
|
|
||||||
const cookies = Object.assign(
|
const cookies = Object.assign(
|
||||||
{},
|
{},
|
||||||
|
|||||||
Reference in New Issue
Block a user