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

Why isn't followRedirect / followRedirects supported? #37

Open
tp opened this issue Nov 13, 2014 · 1 comment
Open

Why isn't followRedirect / followRedirects supported? #37

tp opened this issue Nov 13, 2014 · 1 comment

Comments

@tp
Copy link

tp commented Nov 13, 2014

It seems to me, that requests made with browser-requests never follow redirects, but rather return the 30x response.

I just found the source for the error, that it's not supported:

var unsupported_options = ['proxy', '_redirectsFollowed', 'maxRedirects', 'followRedirect']

Could you please document / mention the reason why it's not supported?

(And for those wanting redirect support I suppose we have to handle the 30x response ourselves, right?)

@yegodz
Copy link

yegodz commented Mar 5, 2015

I think it is the other way.. XMLHttpRequest, which is the underlying library in the browser does not let you intercept redirects, so browser-request cannot support the followRedirect option which the standard request library does

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

No branches or pull requests

2 participants