Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] isFetch parameter is undefined #174

Open
condorheroblog opened this issue Jan 14, 2024 · 0 comments · May be fixed by #175
Open

[Bug] isFetch parameter is undefined #174

condorheroblog opened this issue Jan 14, 2024 · 0 comments · May be fixed by #175

Comments

@condorheroblog
Copy link

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.

xhook/src/patch/fetch.ts

Lines 64 to 69 in 950c7f4

options = {
...requestObj,
...init,
headers: prevHeaders,
acceptedRequest: true,
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant