From eaf1264879d8aebfc160a385889e9e0483810456 Mon Sep 17 00:00:00 2001 From: David Fischer Date: Wed, 2 Nov 2011 23:29:31 -0700 Subject: [PATCH] Fixes an issue with auth and redirects --- requests/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/requests/models.py b/requests/models.py index fd74ed54..5da414af 100644 --- a/requests/models.py +++ b/requests/models.py @@ -338,6 +338,7 @@ class Request(object): r = auth_func(self, *auth_args) self.__dict__.update(r.__dict__) + self.auth = auth_args # Build the Urllib2 Request. req = _Request(url, data=data, headers=headers, method=self.method)