joepie91 / node-bhttp

A sane HTTP client library for Node.js with Streams2 support.
62 stars 12 forks source link

bhttp doesn't respect followRedirects:false #38

Closed dvisztempacct closed 6 years ago

dvisztempacct commented 6 years ago

This option is covered in README.md:

https://github.com/joepie91/node-bhttp/blob/master/README.md#bhttprequesturl-options-callback

But it is not actually respected in bhttp@1.2.4:

https://gist.github.com/dvisztempacct/07bd22bd28be95163a4d7c471085fd47

$ node followredirects.js
received request for /302
received request for /200
res.statusCode= 200
dvisztempacct commented 6 years ago

I should probably use false if I want it to not followRedirects