-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
requestInit.headers do not work because requestInit.headers cannot be spread (...) when its type is Headers.
code like below may be fixed.
return new Headers(
{ ...headers, ...this._requestInit?.headers }
);
To Reproduce
Steps to reproduce the behavior:
const headers = new Headers({ "Content-Type": "application/json" });
console.log({ ...headers });
// output is {}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working