Merge pull request #542 from sveltejs/gh-528

avoid mutating `opts.headers` in `this.fetch` (#528)
This commit is contained in:
Rich Harris
2019-02-01 05:47:54 -05:00
committed by GitHub

View File

@@ -105,7 +105,7 @@ export function get_page_handler(
);
if (include_cookies) {
if (!opts.headers) opts.headers = {};
opts.headers = Object.assign({}, opts.headers);
const cookies = Object.assign(
{},