github sindresorhus/got v6.3.0
6.3.0

followRedirect option

This option disables following redirects and got will not treat them as errors:

const res = await got(`google.com`, {followRedirect: false});
res.statusCode === 302; // true

By default this option is true, so no major changes in code are needed.

Changes

https://github.com/sindresorhus/got/compare/v6.2.0...v6.3.0

latest releases: v11.7.0, v11.6.2, v11.6.1...
5 years ago