You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const r1 = new Request('/');
const r2 = new Request(r1);
Because r2 is created without init argument, r2's associated request's header list is r1's associated request's header list. Hence modification is shared.
I looked at https://fetch.spec.whatwg.org/#dom-request and it seems that step 13 always copies the underlying header list and step 31 always creates a new Headers object. What am I missing?
Because r2 is created without init argument, r2's associated request's header list is r1's associated request's header list. Hence modification is shared.
Is it OK? Or should we clone the header list?
This was introduced at #560 I think.
@youennf @annevk @jakearchibald
The text was updated successfully, but these errors were encountered: