mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fix order of return values from OAuth Client.sign()
This commit is contained in:
committed by
Donald Stufft
parent
7b819852b9
commit
906fcd7328
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user