Fix order of return values from OAuth Client.sign()
authorIdan Gazit <idan@gazit.me>
Sun, 22 Apr 2012 11:39:53 +0000 (14:39 +0300)
committerDonald Stufft <donald.stufft@gmail.com>
Tue, 1 May 2012 10:20:52 +0000 (06:20 -0400)
requests/auth.py

index 18d6318ce9811f3c9741c0e29687014b660acc79..d119c8d8c43043bdb0fab9a6bef6234623a71599 100644 (file)
@@ -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