avoid mutating opts.headers in this.fetch (#528)

This commit is contained in:
Conduitry
2018-12-31 17:08:29 -05:00
parent e2193a6080
commit 92206742d4

View File

@@ -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(
{},