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
Following redirect after POST request throws an exception #1616
Labels
Comments
Having this same issue. Downgrading to version 2.6.7 fixes it. Something must have been done in later versions that causes this error again. |
I'm seeing this issue as well. |
I am also facing the same issue. Any updates on this problem? |
I also have this problem and it seems that the problem is solved with the newly opened PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a
POST
request withredirect: follow
is answered with a307
status code, an exception is thrown due to accessing an undefined options object.Reproduction
Given a minimal server pseudo-setup like this:
Using
fetch
like this:results in following error:
Expected behavior
Follow the redirect and send the
POST
request to the new location.This is how
fetch
in the browser seems to behave (tested with Chrome and Firefox).As the second parameter to
fetch
is optional, the behavior should be the same as callingfetch(request, {})
, which works as expected.Your Environment
The text was updated successfully, but these errors were encountered: