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
// given a response:constresponseA=newResponse('hello',{status: 200,headers: {Foo: 'Bar'}})// when you clone it:constresponseB=newResponse(responseA.body,responseA)// and change the original:responseA.headers.set('Foo','Baz')// then the clone shouldn't change:responseB.headers.get('Foo')// 'Bar'
What happens with service-worker-mock:
// given a response:constresponseA=newResponse('hello',{status: 200,headers: {Foo: 'Bar'}})// when you clone it:constresponseB=newResponse(responseA.body,responseA)// and change the original:responseA.headers.set('Foo','Baz')// then the clone changesresponseB.headers.get('Foo')// 'Baz'
Uh oh!
There was an error while loading. Please reload this page.
What I expect:
What happens with service-worker-mock:
The same thing happens with
Request
.I believe the solution is to change
to
in Request and Response
The text was updated successfully, but these errors were encountered: