nahi/httpclient — pull request #99 by fhars (2012-06-04 08:51:47+00:00)
Title: Return redirect result

The original implementation raised a `BadResponseError` even on perfectly good responses like 306 Not Modified. With this change, `follow_redirect` itself does only throw an exception if the retry chain is too long and it is up to the calling function to decide what to do with the result (like the changed `get_content` and `post_content` methods. I think this is a saner design, where the semantics of the pair `do_request` and `follow_redirect` mimics that of the pair of unix functions `lstat` and and `stat`.