kennethreitz/requests — pull request #1944 by schlamar (2014-03-10 07:24:49+00:00)
Title: Catch errors while handling redirects

This is my proposal which fixes #1939 completely.

@sigmavirus24 missed one possible exception in #1940 (ChunkedEncodingError) and didn't handle RuntimeError correctly (because this means that the content is already consumed).

This also addresses the issue that a decoding error is already thrown in Adapter.send by moving the content reading part at the end of Session.send.