helperdiscord / petitio

An HTTP/S library designed to be simple, fast, and type-strong.
https://helperdiscord.github.io/petitio/
MIT License
44 stars 6 forks source link

Redirect not working #18

Open wonderlandpark opened 3 years ago

wonderlandpark commented 3 years ago

This would solve...

It does not redirect even response has Location header.

The implementation should look like...

It would be great if it redirects. (Just like other library such as node-fetch)

Nytelife26 commented 3 years ago

Thanks for the suggestion! Having looked into it, this would be easily possible using the Agent's redirect ability as opposed to solely using a client.