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.
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.