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

Support Request Arguments #59

Merged

Conversation

knotthere
Copy link

@knotthere knotthere commented Aug 5, 2021

The first parameter tofetch can be either be a URL or a Request object:

WindowOrWorkerGlobalScope.fetch() - Web APIs | MDN

When a Request object is passed to this library, a TypeError is thrown upon retries:

Failed to execute 'fetch' on 'Window': Cannot construct a Request with a Request object that has already been used.

The fix is to use a fresh Request instance for each retry.

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 this pull request may close these issues.

None yet

3 participants