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

Redirect bug #50

Open
eithan1231 opened this issue Jun 15, 2019 · 0 comments · May be fixed by #78
Open

Redirect bug #50

eithan1231 opened this issue Jun 15, 2019 · 0 comments · May be fixed by #78

Comments

@eithan1231
Copy link

Hello again, sorry for spam.

I have noticed the redirection system is somewhat faulty. When redirecting, it does not call url.resolve, so redirects will entirely malfunction if you got a relative path.

To solve this, navigate to the line within index.js, containing the comment // Follow 3xx redirects and update it to
opts.url = url.resolve(url.format(opts), res.headers.location); // Follow 3xx redirects

Again, sorry for spamming the issues section.

Regards.

@LinusU LinusU linked a pull request Feb 6, 2022 that will close this issue
@LinusU LinusU linked a pull request Feb 6, 2022 that will close this issue
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