ladjs / superagent

Ajax for Node.js and browsers (JS HTTP client). Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.
https://ladjs.github.io/superagent/
MIT License
16.57k stars 1.33k forks source link

Fix incorrect response object being emitted on redirect #1761

Closed wilsonjackson closed 1 year ago

wilsonjackson commented 1 year ago

Changes the argument emitted with the redirect event to a Supertest Response object instead of an unwrapped IncomingMessage.

Closes #1760

Checklist

titanism commented 1 year ago

v8.0.9 released to npm and GitHub releases

https://github.com/ladjs/superagent/releases/tag/v8.0.9