kriswallsmith/Buzz — pull request #163 by egeloen (2014-08-01 23:46:44+00:00)
Title: [Client][Stream] Allow to get redirect request with ignore errors configured as false

Hey!

This PR rationalizes the behavior between curl and stream clients. Given you configure the curl client with a max redirects as 0 and ignore errors as false. The curl client will give you the response (302) without any trouble. If you try to do the same thing with the stream client, it failed. It is due to the fact the max redirects is set to 0 which does not allow anything and get_file_contents will return false and so, throw an exception. This PR disables the redirects with the `follow_location` option and let the max_redirects with his default value.

Additionally, IMO, #82 can be closed as it already throws an exception if we set the ignore errors to false.