-
Notifications
You must be signed in to change notification settings - Fork 106
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 limit of redirects #87
Comments
Looks like following no redirects is actually the default, and I just made a typo in the URL. Could you please clarify the intended redirect behaviour in the Readme then? |
|
I guess we could follow the convention of up to 20 redirects in node side. |
I'd mirror the fetch spec here and support the three modes also in nodejs:
source: https://fetch.spec.whatwg.org/#requests It's also specced that:
source: https://fetch.spec.whatwg.org/#statuses The 20 redirect limit is in the spec:
source: https://fetch.spec.whatwg.org/#http-redirect-fetch The browser impl would be just passing that parameter to the |
In my case, I want to follow no redirects at all, so I'd set that limit to 0.
The text was updated successfully, but these errors were encountered: