When I use new Request with fetch to make a request, the value of request.isFetch is not true but undefined.
const req = new Request(url);
fetch(req);
By checking the source code, I saw that isFetch was added to the initialized options, but when options was reassigned, you forgot to reassign the isFetch attribute.
|
options = { |
|
...requestObj, |
|
...init, |
|
headers: prevHeaders, |
|
acceptedRequest: true, |
|
}; |
When I use
new Requestwith fetch to make a request, the value ofrequest.isFetchis nottruebut undefined.By checking the source code, I saw that
isFetchwas added to the initialized options, but when options was reassigned, you forgot to reassign the isFetch attribute.xhook/src/patch/fetch.ts
Lines 64 to 69 in 950c7f4