From: Idan Gazit Date: Sun, 22 Apr 2012 11:39:53 +0000 (+0300) Subject: Fix order of return values from OAuth Client.sign() X-Git-Tag: v0.12.0~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=906fcd732889d9c4c0672cd0f98026b9e1b74273;p=services%2Fpython-requests.git Fix order of return values from OAuth Client.sign() --- diff --git a/requests/auth.py b/requests/auth.py index 18d6318..d119c8d 100644 --- a/requests/auth.py +++ b/requests/auth.py @@ -65,7 +65,8 @@ class OAuth1(AuthBase): body = unicode(body, 'utf-8') alter_body = True - full_url, new_body, headers = self.client.sign(r.url, unicode(r.method), body, r.headers) + full_url, headers, new_body = self.client.sign(r.url, unicode(r.method), body, r.headers) + r.url = full_url if alter_body: r.data = new_body