mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-11 19:04:30 +00:00
avoid mutating opts.headers in this.fetch (#528)
This commit is contained in:
@@ -104,7 +104,7 @@ export function get_page_handler(
|
||||
);
|
||||
|
||||
if (include_cookies) {
|
||||
if (!opts.headers) opts.headers = {};
|
||||
opts.headers = Object.assign({}, opts.headers);
|
||||
|
||||
const cookies = Object.assign(
|
||||
{},
|
||||
|
||||
Reference in New Issue
Block a user