From 906fcd732889d9c4c0672cd0f98026b9e1b74273 Mon Sep 17 00:00:00 2001 From: Idan Gazit Date: Sun, 22 Apr 2012 14:39:53 +0300 Subject: [PATCH] Fix order of return values from OAuth Client.sign() --- requests/auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.7.4