kennethreitz/requests — pull request #235 by davidfischer (2011-11-03 06:36:05+00:00)
Title: Fixes an issue with auth and redirects

The `auth.dispatch` method creates a modified `auth` tuple. When the tuple is passed to a new request (as a result of a redirect) then the new `auth` is incorrect and authorization will fail. This one-liner simply resets the `auth` tuple to the original tuple.