request / request-promise-native

The simplified HTTP request client 'request' with Promise support. Powered by native ES6 promises.
ISC License
1.1k stars 63 forks source link

Can't catch 302 redirect, it always gives me 200 #41

Closed petriichuk closed 5 years ago

analog-nico commented 5 years ago

Redirects are followed by default. Since you don’t want that behavior, use the followRedirect: false options.

There are a few more options regarding redirects that you might want to use as well. They are part of the request documentation which is the underlying library that takes care of the redirects.